mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-07 18:04:55 +08:00
Update Demo
This commit is contained in:
14
Src/Asp.Net/SqlServerTest/Models/Custom.cs
Normal file
14
Src/Asp.Net/SqlServerTest/Models/Custom.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrmTest
|
||||
{
|
||||
public class Custom
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,9 @@ namespace OrmTest
|
||||
|
||||
public string Name { get; set; }
|
||||
public decimal Price { get; set; }
|
||||
[SqlSugar.SugarColumn(IsNullable =true)]
|
||||
[SqlSugar.SugarColumn(IsNullable = true)]
|
||||
public DateTime CreateTime { get; set; }
|
||||
[SqlSugar.SugarColumn(IsNullable =true)]
|
||||
public int CustomId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
13
Src/Asp.Net/SqlServerTest/Models/ViewOrder.cs
Normal file
13
Src/Asp.Net/SqlServerTest/Models/ViewOrder.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrmTest
|
||||
{
|
||||
public class ViewOrder:Order
|
||||
{
|
||||
public string CustomName { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user