Merge perf => dev

--HG--
branch : dev
This commit is contained in:
Renaud Paquay 2010-11-21 20:15:15 -08:00
commit e0d24527b1
5 changed files with 13264 additions and 11 deletions

Binary file not shown.

View File

@ -11831,6 +11831,14 @@
Comes into play whenever the user specifies the "identity" generator.
</remarks>
</member>
<member name="P:NHibernate.Dialect.Dialect.SupportsSqlBatches">
<summary>
Supports splitting batches using GO T-SQL command
</summary>
<remarks>
Batches http://msdn.microsoft.com/en-us/library/ms175502.aspx
</remarks>
</member>
<member name="T:NHibernate.Exceptions.IViolatedConstraintNameExtracter">
<summary>
Defines a contract for implementations that can extract the name of a violated
@ -24756,13 +24764,6 @@
</summary>
<returns>The clone of the root criteria.</returns>
</member>
<member name="P:NHibernate.Impl.CurrentSessionIdLoggingContext.SessionId">
<summary>
Error handling in this case will only kick in if we cannot set values on the TLS
this is usally the case if we are called from the finalizer, since this is something
that we do only for logging, we ignore the error.
</summary>
</member>
<member name="T:NHibernate.Impl.DbCommandSet`2">
<summary>
Expose the batch functionality in ADO.Net 2.0
@ -33948,6 +33949,12 @@
<member name="M:NHibernate.Tool.hbm2ddl.SchemaValidator.Validate">
Perform the validations.
</member>
<member name="M:NHibernate.Tool.hbm2ddl.ScriptReader.ReadNextSection">
<summary>
This acts as a template method. Specific Reader instances
override the component methods.
</summary>
</member>
<member name="T:NHibernate.Tool.hbm2ddl.SuppliedConnectionHelper">
<summary>
A <seealso cref="T:NHibernate.Tool.hbm2ddl.IConnectionHelper"/> implementation based on an explicitly supplied

View File

@ -0,0 +1,7 @@
== nhibernate ==
https://nhibernate.svn.sourceforge.net/svnroot/nhibernate/branches/2.1.x/nhibernate
at revision #4966
applied perf-embedded-serializer-and-compiled-schema-reuse.patch
nant -t:net-3.5 -D:project.config=release

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using FluentNHibernate.Conventions;
@ -8,15 +9,15 @@ using Orchard.Environment.ShellBuilders.Models;
namespace Orchard.Data.Conventions {
public class RecordTableNameConvention : IClassConvention {
private readonly IEnumerable<RecordBlueprint> _descriptors;
private readonly Dictionary<Type, RecordBlueprint> _descriptors;
public RecordTableNameConvention(IEnumerable<RecordBlueprint> descriptors) {
_descriptors = descriptors;
_descriptors = descriptors.ToDictionary(d => d.Type);
}
public void Apply(IClassInstance instance) {
var desc = _descriptors.Where(d => d.Type == instance.EntityType).SingleOrDefault();
if (desc != null) {
RecordBlueprint desc;
if (_descriptors.TryGetValue(instance.EntityType, out desc)) {
instance.Table(desc.TableName);
}
}