var table = new StudentTable();
var insert = new SingleInsert(table)
.Insert(table.Name.Insert("StudentName"))
.Insert(table.Score.InsertValue(90));
// INSERT INTO [Students]([Name],[Score])VALUES(@StudentName,90)
var table = new StudentTable();
var insert = new SingleInsert(table)
.InsertColumn(table.Name)
.InsertColumn(table.Score);
// INSERT INTO [Students]([Name],[Score])VALUES(@Name,@Score)
var table = new StudentTable();
var insert = new SingleInsert(table)
.InsertColumns(table.Name, table.Score);
// INSERT INTO [Students]([Name],[Score])VALUES(@Name,@Score)
4.4 InsertSelfColumns方法
TInsert InsertSelfColumns<TInsert>(this TInsert insert)
where TInsert : SingleInsertBase, ISingleInsert;
var table = new StudentTable();
var insert = new SingleInsert(table)
.InsertSelfColumns();
// INSERT INTO [Students]([Name],[Score])VALUES(@Name,@Score)