mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
-
This commit is contained in:
@@ -73,6 +73,7 @@
|
||||
<Compile Include="Models\Student.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="UnitTest\Setting\Attribute.cs" />
|
||||
<Compile Include="UnitTest\Setting\AutoClose.cs" />
|
||||
<Compile Include="UnitTest\Setting\MapColumn.cs" />
|
||||
<Compile Include="UnitTest\Setting\MapTable.cs" />
|
||||
|
@@ -21,8 +21,8 @@ namespace OrmTest.UnitTest
|
||||
var insertObj = new Student() { Name="jack",CreateTime=DateTime.Now };
|
||||
var insertObjs = new List<Student>() { insertObj }.ToArray();
|
||||
db.IgnoreColumns.Add("TestId", "Student");
|
||||
db.MappingColumns.Add("id","dbid", "Student");
|
||||
db.MappingTables.Add("student","dbstudent");
|
||||
//db.MappingColumns.Add("id","dbid", "Student");
|
||||
|
||||
var s1= db.Insertable<Student>(insertObj).ToSql();
|
||||
|
||||
//Insert reutrn Command Count
|
||||
|
20
OrmTest/UnitTest/Setting/Attribute.cs
Normal file
20
OrmTest/UnitTest/Setting/Attribute.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OrmTest.UnitTest
|
||||
{
|
||||
public class Attribute : ExpTestBase
|
||||
{
|
||||
public Attribute(int eachCount)
|
||||
{
|
||||
this.Count = eachCount;
|
||||
}
|
||||
public void Init()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user