Пример #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();
 }
Пример #2
0
 partial void DeleteSite(Site instance);
Пример #3
0
 partial void UpdateSite(Site instance);
Пример #4
0
 partial void InsertSite(Site instance);
Пример #5
0
		private void detach_Site(Site entity)
		{
			this.SendPropertyChanging();
			entity.Company = null;
		}
Пример #6
0
		private void attach_Site(Site entity)
		{
			this.SendPropertyChanging();
			entity.Company = this;
		}