Update demo

This commit is contained in:
sunkaixuan
2019-06-04 20:01:28 +08:00
parent 76d4dfef87
commit 4ea9b897e2
32 changed files with 70 additions and 173 deletions

View File

@@ -30,7 +30,7 @@ namespace OrmTest
}
public class ABMapping
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[SugarColumn(IsPrimaryKey = true,OracleSequenceName = "SEQ_ID")]
public int AId { get; set; }
public int BId { get; set; }
[SugarColumn(IsIgnore = true)]
@@ -41,13 +41,13 @@ namespace OrmTest
}
public class A
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[SugarColumn(IsPrimaryKey = true, OracleSequenceName ="SEQ_ID")]
public int Id { get; set; }
public string Name { get; set; }
}
public class B
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[SugarColumn(IsPrimaryKey = true, OracleSequenceName = "SEQ_ID")]
public int Id { get; set; }
public string Name { get; set; }
}