private static Guid? aspnet_Users_CreateUser(Guid? applicationId, string username, bool isAnonymous, DateTime lastActivityDate, Guid? userId)
        {
            var db = new ProviderDataContext();
            if (!userId.HasValue)
                userId = Guid.NewGuid();
            else
            {
                if (db.aspnet_Users.Any(p => p.UserId == userId))
                    throw new ProviderException("There is no user with userid " + userId);
            }

            var user = new aspnet_User
                           {
                                       ApplicationId = applicationId.Value,
                                       UserId = userId.Value,
                                       UserName = username,
                                       LoweredUserName = username.ToLower(),
                                       IsAnonymous = isAnonymous,
                                       LastActivityDate = lastActivityDate
                                   };
            db.aspnet_Users.InsertOnSubmit(user);
            db.SubmitChanges();
            return userId;
        }
 partial void Deleteaspnet_User(aspnet_User instance);
 partial void Insertaspnet_User(aspnet_User instance);
 partial void Updateaspnet_User(aspnet_User instance);
		private void detach_aspnet_Users(aspnet_User entity)
		{
			this.SendPropertyChanging();
			entity.aspnet_Application = null;
		}