public void SaveApplicationUser(Guid applicationUserKey, Guid projectKey, string fingerprint, string userName, DateTime serverTime) { using (var context = GetDataContext()) { var applicationUser = new ApplicationUser { ApplicationUserKey = applicationUserKey, ProjectId = context.Projects.Single(x => x.ProjectKey == projectKey).ProjectId, Fingerprint = fingerprint, UserName = userName, CreationServerTime = serverTime, }; context.ApplicationUsers.InsertOnSubmit(applicationUser); context.SubmitChanges(); } }
partial void DeleteApplicationUser(ApplicationUser instance);
partial void InsertApplicationUser(ApplicationUser instance);
partial void UpdateApplicationUser(ApplicationUser instance);
private void detach_ApplicationUsers(ApplicationUser entity) { this.SendPropertyChanging(); entity.Project = null; }