WebSecurity.InitializeDatabaseConnection - How specify a db schema?

后端 未结 4 1859
日久生厌
日久生厌 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:39

    Try this:

    WebSecurity.InitializeDatabaseConnection(connectionStringName: "ApplicationServices", userTableName: "MySchema].[User", userIdColumn: "ID", userNameColumn: "Username", autoCreateTables: true);
    

提交回复
热议问题