示例#1
0
        public T QueryObject <T>(string key, object value, bool checkExist = false) where T : DbObject, new()
        {
            ISqlFormatter sqlFormatter = this.DbObjectOperator.SqlFormatter;
            string        condition    = string.Format("{0} = {1}", sqlFormatter.FormatFieldName(key), sqlFormatter.FormatValue(value, false));

            return(this.QueryObject <T>(condition, checkExist));
        }