如何使用c#和sql server创建用户角色登录?

问题描述:

如何使用c#和sql server创建用户角色登录?



让每个用户只进入他的区域或表格



管理员,用户和访客用户



谢谢你,

how to create login with user roles using c# and sql server ?

make every user entering his area only or form

admin, users and guest users

thank you,

这个适用于ASP.net。这是一系列适合您的文章。如果您的要求是Windows / WPF,则创建一个WCF服务以公开身份验证功能并从Windows应用程序调用服务方法。



http://www.asp.net/web-forms/tutorials/security / membership / Creating-the-membership -schex-in-sql-server-cs [ ^ ]
This works for ASP.net. This is a series of article look into section suitable for you. If you requirement is Windows / WPF then create a WCF service to expose authentication features and call the service method from windows app.

http://www.asp.net/web-forms/tutorials/security/membership/creating-the-membership-schema-in-sql-server-cs[^]