WebSecurity.InitializeDatabaseConnection - How specify a db schema?

后端 未结 4 1863
日久生厌
日久生厌 2021-01-05 23:16

I am using SimpleMembership (http://blog.osbornm.com/archive/2010/07/21/using-simplemembership-with-asp.net-webpages.aspx) but I am unable to have place my custom user table

4条回答
  •  不知归路
    2021-01-05 23:43

    I use my own schema for users.

    My table is called CORE.PROFILES, to work with websecurity I have a SQL synonym dbo.PROFILES.

    To do it run this statement in SQL Server:

    CREATE SYNONYM dbo.profiles FOR core.profiles;
    

    I hope this help you.

提交回复
热议问题