Inheritance: INotifyPropertyChanging, INotifyPropertyChanged
Example #1
0
        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();
            }
        }
Example #2
0
 partial void DeleteApplicationUser(ApplicationUser instance);
Example #3
0
 partial void InsertApplicationUser(ApplicationUser instance);
Example #4
0
 partial void UpdateApplicationUser(ApplicationUser instance);
Example #5
0
		private void detach_ApplicationUsers(ApplicationUser entity)
		{
			this.SendPropertyChanging();
			entity.Project = null;
		}