Exemple #1
0
 internal QueryBuilderUpdate(IDbConnection connection, Compiler compiler, EntityDescription entityDescription)
     : base(connection,
            compiler,
            x => x.From(entityDescription.EntityTable.Name).AsUpdate(entityDescription.GetValues()).Where(entityDescription.GetWhere()))
 {
     EntityDescription = entityDescription;
 }
 internal QueryBuilderInsert(IDbConnection connection, Compiler compiler, EntityDescription entityDescription)
     : base(connection,
            compiler,
            x => x.From(entityDescription.EntityTable.Name).AsInsert(entityDescription.GetValues(), entityDescription.EntityKey.AutoIncrement))
 {
     EntityDescription = entityDescription;
 }