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