Beispiel #1
0
 public static void AddSite(string _name, string _number, string _address, double _lon, double _lati, int _companyId)
 {
     PCMSofCCDataContext db = new PCMSofCCDataContext();
     var newSite = new Site
     {
         Name = _name,
         Number = _number,
         Address = _address,
         Longitude = _lon,
         Latitude = _lati,
         CompanyId = _companyId,
         IsUsed = 1
     };
     db.Site.InsertOnSubmit(newSite);
     db.SubmitChanges();
 }
Beispiel #2
0
 partial void DeleteSite(Site instance);
Beispiel #3
0
 partial void UpdateSite(Site instance);
Beispiel #4
0
 partial void InsertSite(Site instance);
Beispiel #5
0
		private void detach_Site(Site entity)
		{
			this.SendPropertyChanging();
			entity.Company = null;
		}
Beispiel #6
0
		private void attach_Site(Site entity)
		{
			this.SendPropertyChanging();
			entity.Company = this;
		}