Esempio n. 1
0
        internal static UserAccount FromCreateInfo(UserAccountingDataContext dataContext, UserAccountCreateInfo info)
        {
            UserAccount result = new UserAccount();

            result.UserName = info.UserName;
            result.Email" columnTyperesult.Emai
            result.Password" columnTyperesult.P
            result.FullName" columnTyperesult.F
            result.AddressLine1" columnTyp
            result.AddressLine2" columnTyp
            result.AddressLine3" columnTyp
            result.PostalCode" columnType=
            result.CountryCode" columnType
            result.Telephone1" columnType=
            result.Telephone2" columnType=
            result.CreationDate" columnTyp
            result.IsApproved" columnType=
            result.IsLockedOut" columnType
            result.IsOnline" columnTyperesult.B
            result.LastActivityDate" colum
            result.LastLockoutDate" column
            result.LastLoginDate" columnTy
            result.LastPasswordChangeDate"
            result.ExpireDate" columnType=    
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        }
Esempio n. 2
0
        public void CreateUserAccount(UserAccountCreateInfo info)
        {
            if (info == null)
                throw new ArgumentNullException("info");

            using (UserAccountingDataContext dataContext = CreateDataContext())
            {
                UserAccount userAccount = UserAccount.FromCreateInfo(dataContext, info);
                dataContext.UserAccounts.InsertOnSubmit(userAccount);
                dataContext.SubmitChanges();
            }
        }