protected EntityDA(IConfig config, ISqlStatementDA sqlStatementDA) : base(config) { if (!ServerCache.Exists(CacheKey.SqlStatement)) { ServerCache.Add(CacheKey.SqlStatement, () => GetSqlStatementCallback(sqlStatementDA)); } }
public ItemDA(IConfig config, ISqlStatementDA sqlStatementDA) : base(config, sqlStatementDA) { }
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))); }
public ProductCategoryDA(IConfig config, ISqlStatementDA sqlStatementDA) : base(config, sqlStatementDA) { }