public void Create() { if (RetrieveByName(this.name).Count == 0) { MTypeDAL.Create(this); } }
public static ObservableCollection <MType> RetrieveById(long id) { return(MTypeDAL.RetrieveById(id)); }
public static ObservableCollection <MType> RetrieveByName(string name) { return(MTypeDAL.RetrieveByName(name)); }
public static ObservableCollection <MType> RetrieveAll() { return(MTypeDAL.RetrieveAll()); }
public void Delete() { MTypeDAL.Delete(this); }
public void Update() { MTypeDAL.Update(this); }
public static void CreateTable() { MTypeDAL.CreateTable(); }