示例#1
0
 public void Create()
 {
     if (RetrieveByName(this.name).Count == 0)
     {
         MTypeDAL.Create(this);
     }
 }
示例#2
0
 public static ObservableCollection <MType> RetrieveById(long id)
 {
     return(MTypeDAL.RetrieveById(id));
 }
示例#3
0
 public static ObservableCollection <MType> RetrieveByName(string name)
 {
     return(MTypeDAL.RetrieveByName(name));
 }
示例#4
0
 public static ObservableCollection <MType> RetrieveAll()
 {
     return(MTypeDAL.RetrieveAll());
 }
示例#5
0
 public void Delete()
 {
     MTypeDAL.Delete(this);
 }
示例#6
0
 public void Update()
 {
     MTypeDAL.Update(this);
 }
示例#7
0
 public static void CreateTable()
 {
     MTypeDAL.CreateTable();
 }