Remove test entity
This commit is contained in:
parent
155c9b4e77
commit
17170962b1
@ -1,29 +0,0 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using ChaosBot.Attribute;
|
||||
|
||||
namespace ChaosBot.Database.Entity
|
||||
{
|
||||
[DBEntity("TestTable")]
|
||||
public class TestEntity : BaseEntity
|
||||
{
|
||||
public long id { get; private set; }
|
||||
|
||||
public TestEntity() {}
|
||||
|
||||
public TestEntity(int id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public static QueryBuilder<TestEntity> Query()
|
||||
{
|
||||
return BaseEntity.Query<TestEntity>();
|
||||
}
|
||||
|
||||
public override void SetFromRow(DataRow row)
|
||||
{
|
||||
id = (long)row["id"];
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user