예제 #1
0
        public void Insert(string PlaceName, int?CountryID, int?DefaultPalletID, byte[] Ts)
        {
            PlacesTable item = new PlacesTable();

            item.PlaceName = PlaceName;

            item.CountryID = CountryID;

            item.DefaultPalletID = DefaultPalletID;

            item.Ts = Ts;


            item.Save(UserName);
        }
예제 #2
0
        public void Update(int PlaceID, string PlaceName, int?CountryID, int?DefaultPalletID, byte[] Ts)
        {
            PlacesTable item = new PlacesTable();

            item.MarkOld();
            item.IsLoaded = true;

            item.PlaceID = PlaceID;

            item.PlaceName = PlaceName;

            item.CountryID = CountryID;

            item.DefaultPalletID = DefaultPalletID;

            item.Ts = Ts;

            item.Save(UserName);
        }
예제 #3
0
 public bool Destroy(object PlaceID)
 {
     return(PlacesTable.Destroy(PlaceID) == 1);
 }
예제 #4
0
 public bool Delete(object PlaceID)
 {
     return(PlacesTable.Delete(PlaceID) == 1);
 }