Exemplo n.º 1
0
 public TranslatedLinqCommand(string sqlTemplate, string sql, 
     IList<LinqCommandParameter> parameters,
     LinqCommandFlags flags,
     Func<IDataRecord, EntitySession, object> objectMaterializer = null,
     QueryResultsProcessor resultsPostProcessor = null,
     Func<IList> resultListCreator = null)
 {
     BatchSqlTemplate = sqlTemplate;
       Sql = sql;
       Parameters = parameters;
       Flags = flags;
       ObjectMaterializer = objectMaterializer;
       ResultsPostProcessor = resultsPostProcessor;
       ResultListCreator = resultListCreator;
 }
Exemplo n.º 2
0
 public TranslatedLinqCommand(string sqlTemplate, string sql,
                              IList <LinqCommandParameter> parameters,
                              LinqCommandFlags flags,
                              Func <IDataRecord, EntitySession, object> objectMaterializer = null,
                              QueryResultsProcessor resultsPostProcessor = null,
                              Func <IList> resultListCreator             = null)
 {
     BatchSqlTemplate = sqlTemplate;
     Sql                  = sql;
     Parameters           = parameters;
     Flags                = flags;
     ObjectMaterializer   = objectMaterializer;
     ResultsPostProcessor = resultsPostProcessor;
     ResultListCreator    = resultListCreator;
 }