public static int Insert(M_Base data, SqlBase db) { SqlModel model = new SqlModel() { cmd = SqlCmd.Insert, tbName = data.TbName, pk = data.PK }; model.AddSpToList(data.GetParameters()); model.fields = DB.GetFields(data); model.values = DB.GetParams(data); PreSPList(model); return(db.InsertID(model)); }