예제 #1
0
 partial void DeleteCordinate(Cordinate instance);
예제 #2
0
        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();
        }
예제 #3
0
 partial void UpdateCordinate(Cordinate instance);
예제 #4
0
 partial void InsertCordinate(Cordinate instance);
예제 #5
0
 partial void DeleteCordinate(Cordinate instance);
예제 #6
0
 partial void UpdateCordinate(Cordinate instance);
예제 #7
0
 partial void InsertCordinate(Cordinate instance);