public void Add(user_location loc) { db.user_locations.InsertOnSubmit(loc); }
public void UserLoc(int userID, string latval, string longval) { user_location newloc = new user_location(); newloc.UserID = userID; newloc.LatVal = Convert.ToDecimal(latval); newloc.LongVal = Convert.ToDecimal(longval); db.user_locations.InsertOnSubmit(newloc); db.SubmitChanges(); }
partial void Deleteuser_location(user_location instance);
partial void Updateuser_location(user_location instance);
partial void Insertuser_location(user_location instance);
private void detach_user_locations(user_location entity) { this.SendPropertyChanging(); entity.User = null; }