public override IEnumerable <T> Where(Expression <Func <T, bool> > predicate, Mutator mutator = null) { var parts = ModelRender.Render(predicate); var statement = Statements.GetSetByWhere.format(parts.Statement); var parameters = ToRawParameters(ModelRender.Render(predicate).Parameters); return(RawQuery <T>(statement, parameters)); }
public override void Initialize() { Configuration = Info <T> .Configuration; Settings = Info <T> .Settings; Map(); RenderSchemaEntityNames(); ValidateSchema(); KeyColumn = Settings.Members[Settings.KeyMemberName].TargetName; ModelRender = new ModelRender <T, TStatementFragments, TWherePart>(Extensions.ToModelDescriptor <T>(), Masks); PrepareStatements(); ReferenceCollectionName = Configuration.SetPrefix + Configuration.SetName; }