摘要: public static T GetModelT(T model, string wherestr) where T : new() { DBHelp db = new DBHelp(); string typeName = model.GetType().Name; typeName = typeName.Substring(0, typeName.Length - 4); string strF = DbFields.FieldsBuilingInfo; string sql = string.Format("select {0} from {1} where {2}", strF, 阅读全文