protected EntityDA(IConfig config, ISqlStatementDA sqlStatementDA) : base(config)
 {
     if (!ServerCache.Exists(CacheKey.SqlStatement))
     {
         ServerCache.Add(CacheKey.SqlStatement, () => GetSqlStatementCallback(sqlStatementDA));
     }
 }
Exemple #2
0
 public ItemDA(IConfig config, ISqlStatementDA sqlStatementDA)
     : base(config, sqlStatementDA)
 {
 }
Exemple #3
0
 public ReceiptNoteDA(IConfig config, ISqlStatementDA sqlStatementDA) : base(config, sqlStatementDA)
 {
 }
        private SqlStatementDictionary GetSqlStatementCallback(ISqlStatementDA sqlStatementDA)
        {
            var statements = sqlStatementDA.GetListStatement();

            return(new SqlStatementDictionary(statements.ToDictionary(x => x.Name, x => x.QueryString)));
        }
Exemple #5
0
 public ProductCategoryDA(IConfig config, ISqlStatementDA sqlStatementDA)
     : base(config, sqlStatementDA)
 {
 }