mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 20:13:53 +08:00
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:
parent
55cdaadbe3
commit
f86826b99b
@ -84,6 +84,7 @@
|
|||||||
<PredefinedRule Inspect="False" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateStaticReadonly" />
|
<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="EnumMember" />
|
||||||
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" />
|
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Other" />
|
||||||
|
<Abbreviation Text="SQ" />
|
||||||
</Naming2>
|
</Naming2>
|
||||||
</CodeStyleSettings>
|
</CodeStyleSettings>
|
||||||
</Configuration>
|
</Configuration>
|
@ -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()
|
return Fluently.Configure()
|
||||||
.Database(database)
|
.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*/))
|
.ExposeConfiguration(c => new SchemaUpdate(c).Execute(false /*script*/, true /*doUpdate*/))
|
||||||
.BuildSessionFactory();
|
.BuildSessionFactory();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user