public bool RemoveKind(Tb_enum t) { if (Repository.Remove <Model.Tb_enum>() .Where().And(Model.Tb_enum.Table.Enum_Kind, t.Enum_Kind) .EndWhere() .Save() < 1) { return(false); } return(true); }
public override bool Remove(Tb_enum t) { if (Repository.Remove <Model.Tb_enum>() .Where().And(Model.Tb_enum.Table.Item_Id, t.Item_Id) .EndWhere() .Save() < 1) { return(false); } return(true); }
public override bool Add(Tb_enum t) { t.Item_Id = NewId(); return(Repository.Add(t)); }
private string GetKeyFormObj(object obj) { Tb_enum t = obj as Tb_enum; return(t.Enum_Text); }