Small change for consistency

Allow SQLite in class names without resharper warnings
Change a parameter name for consistency

--HG--
branch : dev
This commit is contained in:
Louis DeJardin 2010-02-05 15:16:31 -08:00
parent 55cdaadbe3
commit f86826b99b
2 changed files with 3 additions and 2 deletions

View File

@ -84,6 +84,7 @@
<PredefinedRule Inspect="False" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateStaticReadonly" />
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="EnumMember" />
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" />
<Abbreviation Text="SQ" />
</Naming2>
</CodeStyleSettings>
</Configuration>

View File

@ -44,10 +44,10 @@ namespace Orchard.Data {
}
private static ISessionFactory BuildSessionFactory(IPersistenceConfigurer database, IEnumerable<RecordDescriptor> recordTypes) {
private static ISessionFactory BuildSessionFactory(IPersistenceConfigurer database, IEnumerable<RecordDescriptor> recordDescriptors) {
return Fluently.Configure()
.Database(database)
.Mappings(m => m.AutoMappings.Add(CreatePersistenceModel(recordTypes)))
.Mappings(m => m.AutoMappings.Add(CreatePersistenceModel(recordDescriptors)))
.ExposeConfiguration(c => new SchemaUpdate(c).Execute(false /*script*/, true /*doUpdate*/))
.BuildSessionFactory();
}