vs2005中的aspnetdb

asp.net 安全性验证中,觉得最用的上就是Form验证 而2.0自带了一个aspnetdb 提供用户验证、授权、访问控制,总结、摘抄了一些如下。

一aspnetdb数据库中表结构

表名:aspnet_Applications
说明:保存应用程序信息

字段名
 类型  属性 说明
 ApplicationName  nvarchar(256)    应用程序名
 LoweredApplicationName  nvarchar(256)    小写的应用程序名
ApplicationId
 uniqueidentifier  PK 应用程序的id, GUID值
 Description  nvarchar(256)  nullable 应用程序的 描述

表名:aspnet_Paths
说明:路径信息
字段名
 类型  属性 说明
 ApplicationId  uniqueidentifier  FK: appnet_Applications.ApplciationId
 应用程序Id
 PathId  uniqueidentifier  PK  路径Id
 Path  nvarchar(256)    路径信息
 LoweredPath
 nvarchar(256)   小写的路径信息

表名:aspnet_Users
说明:用户信息

 字段名  类型  属性  说明
 ApplicationId  uniqueidentifier    应用程序Id
 UserId
 uniqueidentifier  PK 用户Id
 UserName  nvarchar(256)    用户名
 LoweredUserName  nvarchar(256)    小写的用户名
 MobileAlias  nvarchar(16)    移动电话的pin码(未使用)
 IsAnonymous  bit    是否为匿名用户
LastActivityDate
 datetime    最后活动日期

表名:aspnet_Membership
说明:成员信息
 字段名  类型  属性  说明
 ApplicationId  uniqueidentifier  FK: appnet_Applications.ApplciationId
 应用程序Id
 UserId
 uniqueidentifier  FK: aspnet_Users.UserID
用户Id
 Password
 nvarchar(128)    密码
 PasswordFormat  int   存储密码的格式 
 PasswordSalt  nvarchar(128)   密码的Hash值
 MobilePIN  nvarchar(16)    手机PIN码
 Email
 nvarchar(256)    电子邮件地址
 LoweredEmail  nvarchar(256)    小写的电子邮件地址
 PasswordQuestion  nvarchar(256)    遗忘密码问题
 PasswordAnswer  nvarchar(128)    遗忘密码答案
 IsApproved  bit    
 IsLockedOut  bit    是否锁住
 CreateDate  datetime
   创建时间
 LastLoginDate  datetime    最后登录时间
 LastPasswordChangedDate  datetime    最后密码更改时间
 LastLockoutDate  datetime    最后一次锁帐号的时间
 FailedPasswordAttemptCount  int    密码失败尝试次数
 FailedPasswordAttemptWindowStart  datetime    密码失败尝试窗口打开时间
 FailedPasswordAnswerAttemptCount  int    遗失密码问题尝试次数
 FailedPasswordAnswerAttemptWindowStart  datetime    遗失密码问题输入窗口打开时间
 Comment  ntext    备注

表名:aspnet_Roles
说明:角色表
 字段名  类型  属性  说明
ApplicationId
 uniqueidentifier  FK: appnet_Applications.ApplciationId
应用程序Id
 RoleId  uniqueidentifier  PK
 角色Id
 RoleName  nvarchar(256)    角色名称
 LoweredRoleName  nvarchar(256)    小的角色名称
 Description  nvarchar(256)  nullable  描述

表名:aspnet_UsersInRoles
说明:用户角色关系表
 字段名  类型 属性
说明
 UserID  uniqueidentifier  FK: aspnet_Users.UserId
用户ID 
 RoleID  uniqueidentifier  FK: aspnet_Roles.RoleId
 角色ID

表名:aspnet_Profile
说明:Profile对象存储表
字段名
类型  属性  说明 
 UserId  uniqueidentifier  FK: aspnet_Users.UserId
 用户ID
 PropertyNames  ntext    属性名称
 PropertyValuesString  ntext    字符串值
 PropertyValuesBinary  image    二进制值
LastUpdatedDate
 datetime   最后更新日期 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章