Update demo

This commit is contained in:
sunkaixuan
2019-06-04 17:48:25 +08:00
parent 4149d611ee
commit 76d4dfef87
35 changed files with 1949 additions and 79 deletions

View File

@@ -1,4 +1,5 @@
using System;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -6,17 +7,18 @@ using System.Text;
namespace OrmTest
{
[SqlSugar.SugarTable("ORDERINFO")]
public class Order
{
[SqlSugar.SugarColumn(IsPrimaryKey = true, OracleSequenceName = "seq_newsId")]
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
public string Name { get; set; }
public decimal Price { get; set; }
[SqlSugar.SugarColumn(IsNullable = true)]
[SugarColumn(IsNullable = true)]
public DateTime CreateTime { get; set; }
[SqlSugar.SugarColumn(IsNullable =true)]
[SugarColumn(IsNullable =true)]
public int CustomId { get; set; }
[SugarColumn(IsIgnore = true)]
public List<OrderItem> Items { get; set; }
}
}