Ejemplo n.º 1
0
        protected internal BaseSqlEasySearch(string sql, string idField, string nameField,
                                             TkDbContext context)
            : base(new SqlProxyScheme(DbUtil.CreateSqlTableScheme(sql, TABLE_NAME,
                                                                  idField, context), idField, nameField),
                   StringUtil.GetNickName(idField), StringUtil.GetNickName(nameField), false)
        {
            fSql = sql;
            TableSchemeData schemeData = TableSchemeData.Create(context, ProxyScheme);

            fSelectFields = schemeData.SelectFields;
        }