partial void DeleteCordinate(Cordinate instance);
private void InsertCordinateMetadata(Guid wardId, IList<CordinatePoint> cordinates, DataAccessDataContext context) { IList<Cordinate> cordinateList = new List<Cordinate>(); foreach (var cordinate in cordinates) { Cordinate cordinatePoint = new Cordinate { Id = Guid.NewGuid(), Latitude = cordinate.Latitude, Longitude = cordinate.Longitude, WardId = wardId, Rank = cordinate.Rank }; cordinateList.Add(cordinatePoint); } context.Cordinates.InsertAllOnSubmit(cordinateList.AsEnumerable()); SubmitData(); }
partial void UpdateCordinate(Cordinate instance);
partial void InsertCordinate(Cordinate instance);