public CaseModel LocalXML() { Func <TestModel, bool> where = (model) => model.RecordIndex % 3 == 0; Test_WhereIDAL <TestModel, Func <TestModel, bool>, ShineUponParser, ShineUponInfo> mdoel = new Test_WhereIDAL <TestModel, Func <TestModel, bool>, ShineUponParser, ShineUponInfo>() { NameSign = @"XML格式文件", iDAL = (IDAL <TestModel, Func <TestModel, bool>, ShineUponParser, ShineUponInfo>) new YTS.Engine.IOAccess.DAL_LocalXML <TestModel>(), w_dal = where, w_model = where, update_content_dal = new KeyObject[] { new KeyObject() { Key = @"Name", Value = @"3的倍数名称" }, }, update_content_model = (model) => { model.Name = @"3的倍数名称"; return(model); }, }; return(mdoel); }
public CaseModel MSSQLServer() { Test_WhereIDAL <TestModel, string, ColumnModelParser <TestModel>, ColumnInfo> mdoel = new Test_WhereIDAL <TestModel, string, ColumnModelParser <TestModel>, ColumnInfo>() { NameSign = @"微软数据库", iDAL = new YTS.Engine.IOAccess.DAL_MSSQLServer <TestModel>(), w_dal = @"RecordIndex % 3 = 0", w_model = (model) => model.RecordIndex % 3 == 0, update_content_dal = new KeyObject[] { new KeyObject() { Key = @"Name", Value = @"3的倍数名称" }, }, update_content_model = (model) => { model.Name = @"3的倍数名称"; return(model); }, sorts = new KeyBoolean[] { new KeyBoolean() { Key = @"RecordIndex", Value = true }, }, }; return(mdoel); }