Browse Source

Split table

pull/9/head
sunkaixuna 3 years ago
parent
commit
35e16bcc61
  1. 7
      Src/Asp.Net/SqlServerTest/Demo/Demo3_Insertable.cs
  2. 2
      Src/Asp.Net/SqlSugar/Interface/Insertable.cs

7
Src/Asp.Net/SqlServerTest/Demo/Demo3_Insertable.cs

@ -149,6 +149,13 @@ namespace OrmTest
SubNoIdentity(db);
SubIdentity(db);
var dict = new Dictionary<string, object>();
dict.Add("name", "1");
dict.Add("CreateTime", DateTime.Now);
dict.Add("Price", 1);
db.Insertable(dict).AS("[Order]").ExecuteCommand();
Console.WriteLine("#### Insertable End ####");
}

2
Src/Asp.Net/SqlSugar/Interface/Insertable.cs

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace SqlSugar
{
public partial interface IInsertable<T>
public partial interface IInsertable<T> where T :class,new()
{
InsertBuilder InsertBuilder { get; set; }
int ExecuteCommand();

Loading…
Cancel
Save