/// <summary> /// 插入一条记录(仅列出字段有效) /// </summary> /// <param name="obj"></param> /// <param name="fields"></param> /// <returns></returns> public object Insert(object obj, string[] fields) { using (IConnection conn = _d1.GetDBConnection(obj.GetType())) { return(Insert(conn, obj, fields)); } }
public void DeleteList <T>(Criteria condition) { using (IConnection conn = _d1.GetDBConnection(typeof(T))) { DeleteList <T>(conn, condition); } }