<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>ASP.NET Universal Providers Readme</title>
<style type="text/css">
body{
margin-left:1in;
margin-top:.75in;
margin-right:1.7in;
font-family:calibri;
font-size:11pt;
line-height:1.15em;
background-color:white;
}
h1{
margin-left:-.2in;
font-family:Arial, Verdana, sans-serif;
font-size:20pt;
}
h2{
margin-left:-.2in;
margin-top:1.8em;
font-family:Arial, Verdana, sans-serif;
font-size:16pt;
}
h3{
margin-left:-.2in;
font-family:Verdana, sans-serif;
font-size:13.5pt;
}
table{
border:thin gray groove;
}
thead{
background-color:black;
color:white;
font-weight:bold;
text-align:center;
}
td{
border:1px solid black;
}
p.indent1{
margin-left:.25in;
}
code{
font-family:"Courier New";
font-size:10pt;
color:#006600;
}
pre{
font-family:"Courier New";
font-size:10pt;
padding:8px;
color:#006600;
}
span.highlight{
background-color:Yellow;
}
</style>
</head>
<body>
<h1>ASP.NET Universal Providers</h1>
<p>Last update: 15 August 2012</p>
<p>The
<a href="http://msdn.microsoft.com/en-us/library/system.web.security.sqlmembershipprovider.aspx">SqlMembershipProvider</a>,
<a href="http://msdn.microsoft.com/en-us/library/system.web.security.sqlroleprovider.aspx">SqlRoleProvider</a>,
<a href="http://msdn.microsoft.com/en-us/library/system.web.profile.sqlprofileprovider.aspx">SqlProfileProvider</a> classes that shipped in ASP.NET through version 4 support only Microsoft SQL Server and Microsoft SQL Server Express. They do not support newer offerings such as
<a href="http://msdn.microsoft.com/en-us/library/ee336241.aspx">Microsoft SQL Azure</a> and
<a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=033cfb76-5382-44fb-bc7e-b3c8174832e2">Microsoft SQL Server Compact</a>. </p>
<p>ASP.NET Universal Providers have been created in order to extend support to all editions of SQL Server 2005 and later and to SQL Azure. If you use these providers to develop your application, the application will be ready for cloud environments like Azure.</p>
<p>Other than supporting additional storage options, the providers work like the existing SQL-based providers. Except as noted below, using ASP.NET Universal Providers requires no change in any of your applications.</p>
<ul>
<li><a href="#Installing_and_Configuring_ASP.NET_Unive">Installing and
Configuring ASP.NET Universal Providers</a></li>
<li><a href="#Selecting_a_Data_Store">Selecting a Data Store</a></li>
<li><a href="#Storing_Data_in_Session_State_using_ASP">Storing Data in
Session State using ASP.NET Universal Providers</a></li>
<li><a href="#Deploying_to_a_Cloud_Environment">Deploying to a Cloud
Environment</a></li>
<li><a href="#Known_Issues">Known Issues</a></li>
<li><a href="#Additional_Resources">Additional Resources</a></li>
<li><a href="#Disclaimer">Disclaimer</a><br />
</li>
</ul>
<h2><a name="Installing_and_Configuring_ASP.NET_Unive">Installing and Configuring ASP.NET Universal Providers</a></h2>
<p>To install ASP.NET Universal Providers, you use a NuGet package, which installs all required files (including this documentation). The NuGet package automatically enables the new providers when it is installed. By default, the NuGet package configures provider to use SQL Server Express. To use SQL Server Compact or SQL Azure, you must change the connection string for the provider, as explained
<a href="#Selecting_a_Data_Store">later in this document</a>.</p>
<p>To enable the providers, the NuGet package adds configuration entries in the
<em>web.config</em> file. The configuration for these providers is the same as the existing
<code>SqlMembershipProvider</code> class, but the <code>type</code> parameter is set to the type of the new providers, as shown in the following table:</p>
<table>
<thead>
<td>SQL Provider Types</td>
<td>Equivalent Type for Universal Providers</td>
</thead>
<tr>
<td ><code>System.Web.Security.SqlMembershipProvider</code></td>
<td ><code>System.Web.Providers.DefaultMembershipProvider</code></td>
</tr>
<tr>
<td><code>System.Web.Profile.SqlProfileProvider</code></td>
<td><code>System.Web.Providers.DefaultProfileProvider</code></td>
</tr>
<tr>
<td><code>System.Web.Security.SqlRoleProvider</code></td>
<td><code>System.Web.Providers.DefaultRoleProvider</code></td>
</tr>
<tr>
<td>(Built into default provider)</td>
<td><code>System.Web.Providers.DefaultSessionStateProvider</code></td>
</tr>
</table>
<p>In the <em>web.config</em> file, the configuration looks like the following example (the connection string has been wrapped for readability). The differences from the configuration for older SQL-based providers are highlighted. Notice that a section has been added to define custom session-state handling using a custom provider, as described later under
<a href="#Storing_Data_in_Session_State_using_ASP">Storing Data in Session State using ASP.NET Universal Providers</a>.</p>
<pre><configuration>
<connectionStrings>
<add name="DefaultConnection"
connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=aspnetdb;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<membership <span class="highlight">defaultProvider="DefaultMembershipProvider"</span>>
<providers>
<clear />
<add name="DefaultMembershipProvider"
<span class="highlight">type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
</span> connectionStringName="DefaultConnection"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
applicationName="/" />
</providers>
</membership>
<profile <span class="highlight">defaultProvider="DefaultProfileProvider"</span>>
<providers>
<clear />
<add name="DefaultProfileProvider"
<span class="highlight">type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
</span> connectionStringName="DefaultConnection"
applicationName="/" />
</providers>
</profile>
<roleManager <span class="highlight">defaultProvider="DefaultRoleProvider"</span> enabled="false">
<providers>
<clear />
<add name="DefaultRoleProvider"
<span class="highlight">type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
</span> connectionStringName="DefaultConnection"
applicationName="/" />
</providers>
</roleManager>
<sessionState mode="Custom" customProvider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider"
<span class="highlight">type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
</span> connectionStringName="DefaultConnection"
applicationName="/" />
</providers>
</sessionState>
</system.web> </pre>
<h2><a name="Selecting_a_Data_Store">Selecting a Data Store</a></h2>
<p>If you want to use SQL Server LocalDB database,c
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
C# + SQL Server 本系统包括两类用户:学生、管理员。管理员可以通过系统来添加管理员信息、修改管理员信息、添加学生信息、修改学生信息;开设课程、查询课程、录入成绩、统计成绩 管理系统是一种通过计算机技术实现的用于组织、监控和控制各种活动的软件系统。这些系统通常被设计用来提高效率、减少错误、加强安全性,同时提供数据和信息支持。以下是一些常见类型的管理系统: 学校管理系统: 用于学校或教育机构的学生信息、教职员工信息、课程管理、成绩记录、考勤管理等。学校管理系统帮助提高学校的组织效率和信息管理水平。 人力资源管理系统(HRM): 用于处理组织内的人事信息,包括员工招聘、培训记录、薪资管理、绩效评估等。HRM系统有助于企业更有效地管理人力资源,提高员工的工作效率和满意度。 库存管理系统: 用于追踪和管理商品或原材料的库存。这种系统可以帮助企业避免库存过剩或不足的问题,提高供应链的效率。 客户关系管理系统(CRM): 用于管理与客户之间的关系,包括客户信息、沟通记录、销售机会跟踪等。CRM系统有助于企业更好地理解客户需求,提高客户满意度和保留率。 医院管理系统: 用于管理医院或医疗机构的患者信息、医生排班、药品库存等。这种系统可以提高医疗服务的质量和效率。 财务管理系统: 用于记录和管理组织的财务信息,包括会计凭证、财务报表、预算管理等。财务管理系统
资源推荐
资源详情
资源评论
收起资源包目录
速报后台管理系统.zip (2000个子文件)
Global.asax 103B
Global.asax 103B
SP8888New_BG.csprojResolveAssemblyReference.cache 160KB
SP8888New_BG.csprojResolveAssemblyReference.cache 157KB
Services.csprojResolveAssemblyReference.cache 98KB
IServices.csprojResolveAssemblyReference.cache 94KB
Services.csprojResolveAssemblyReference.cache 85KB
IServices.csprojResolveAssemblyReference.cache 83KB
Common.csprojResolveAssemblyReference.cache 77KB
Common.csprojResolveAssemblyReference.cache 77KB
DesignTimeResolveAssemblyReferencesInput.cache 46KB
DesignTimeResolveAssemblyReferencesInput.cache 36KB
DesignTimeResolveAssemblyReferencesInput.cache 8KB
DesignTimeResolveAssemblyReferencesInput.cache 8KB
DesignTimeResolveAssemblyReferencesInput.cache 8KB
DesignTimeResolveAssemblyReferencesInput.cache 7KB
DesignTimeResolveAssemblyReferencesInput.cache 7KB
DesignTimeResolveAssemblyReferencesInput.cache 7KB
App_global.asax.compiled 294B
App_global.asax.compiled 294B
Web.config 7KB
SP8888New_BG.dll.config 7KB
Web.config 7KB
Web.config 7KB
Web.config 7KB
Web.config 7KB
Web.config 7KB
packages.config 3KB
packages.config 3KB
packages.config 3KB
packages.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 3KB
Web.config 1KB
Web.Release.config 1KB
Web.Debug.config 1KB
packages.config 203B
packages.config 203B
packages.config 203B
PrecompiledApp.config 49B
PrecompiledApp.config 49B
BasketBallController.cs 24KB
AFBController.cs 22KB
BBSchedulesController.cs 16KB
BaseballSchedulesService.cs 15KB
IceHockeySchedulesService.cs 15KB
IHSchedulesController.cs 14KB
FootballController.cs 12KB
BasketballService.cs 12KB
BKOSService.cs 12KB
AFBService.cs 11KB
BKOSController.cs 8KB
IHAllianceController.cs 8KB
BBAllianceController.cs 8KB
LogController.cs 8KB
LogController.cs 7KB
LogController.cs 7KB
RepositoryBase.cs 7KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
普通的一个普通猿
- 粉丝: 1462
- 资源: 1761
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功