c# - How do I configure ASP.NET to use MongoDB for storing user names -


i trying set asp.net project uses mongodb. asp.net project comes automatically generated user login system. system configured use sql database. black box however; inspecting methods yields metadata.

as far can tell, way manipulate database used configuration file (is incorrect?). configure accounts controller store user id , password in mongodb, testdatabase.

here current configuration:

<configsections>     <section name="entityframework"      type="system.data.entity.internal.configfile.entityframeworksection, entityframework, version=6.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089"      requirepermission="false" /> </configsections> ... <entityframework>   <defaultconnectionfactory type="system.data.entity.infrastructure.localdbconnectionfactory, entityframework">     <parameters>       <parameter value="mssqllocaldb" />     </parameters>   </defaultconnectionfactory>   <providers>     <provider invariantname="system.data.sqlclient"                type="system.data.entity.sqlserver.sqlproviderservices, entityframework.sqlserver" />   </providers> </entityframework> ... <connectionstrings>   <add name="defaultconnection" connectionstring="data source=(localdb)\mssqllocaldb;attachdbfilename=|datadirectory|\aspnet-webapplication1-20150805041852.mdf;initial catalog=aspnet-webapplication1-20150805041852;integrated security=true"   providername="system.data.sqlclient" />   <!--add name="defaultconnection" connectionstring="mongodb://localhost/testdatabase" providername="" />--> </connectionstrings> 

i spoke developer, , seems might or might not trivial fix, involving tricks...


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -