You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
(248) |
May
(82) |
Jun
(90) |
Jul
(177) |
Aug
(253) |
Sep
(157) |
Oct
(151) |
Nov
(143) |
Dec
(278) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(152) |
Feb
(107) |
Mar
(177) |
Apr
(133) |
May
(259) |
Jun
(81) |
Jul
(119) |
Aug
(306) |
Sep
(416) |
Oct
(240) |
Nov
(329) |
Dec
(206) |
2006 |
Jan
(466) |
Feb
(382) |
Mar
(153) |
Apr
(162) |
May
(133) |
Jun
(21) |
Jul
(18) |
Aug
(37) |
Sep
(97) |
Oct
(114) |
Nov
(110) |
Dec
(28) |
2007 |
Jan
(74) |
Feb
(65) |
Mar
(49) |
Apr
(76) |
May
(43) |
Jun
(15) |
Jul
(68) |
Aug
(55) |
Sep
(63) |
Oct
(59) |
Nov
(70) |
Dec
(66) |
2008 |
Jan
(71) |
Feb
(60) |
Mar
(120) |
Apr
(31) |
May
(48) |
Jun
(81) |
Jul
(107) |
Aug
(51) |
Sep
(80) |
Oct
(83) |
Nov
(83) |
Dec
(79) |
2009 |
Jan
(83) |
Feb
(110) |
Mar
(97) |
Apr
(91) |
May
(291) |
Jun
(250) |
Jul
(197) |
Aug
(58) |
Sep
(54) |
Oct
(122) |
Nov
(68) |
Dec
(34) |
2010 |
Jan
(50) |
Feb
(17) |
Mar
(63) |
Apr
(61) |
May
(84) |
Jun
(81) |
Jul
(138) |
Aug
(144) |
Sep
(78) |
Oct
(26) |
Nov
(30) |
Dec
(61) |
2011 |
Jan
(33) |
Feb
(35) |
Mar
(166) |
Apr
(221) |
May
(109) |
Jun
(76) |
Jul
(27) |
Aug
(37) |
Sep
(1) |
Oct
(4) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(3) |
Oct
(2) |
Nov
|
Dec
(1) |
2014 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <fab...@us...> - 2011-03-22 18:46:26
|
Revision: 5503 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5503&view=rev Author: fabiomaulo Date: 2011-03-22 18:46:20 +0000 (Tue, 22 Mar 2011) Log Message: ----------- Fix NH-2531 Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Impl/CriteriaImpl.cs Modified: trunk/nhibernate/src/NHibernate/Impl/CriteriaImpl.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Impl/CriteriaImpl.cs 2011-03-22 18:28:13 UTC (rev 5502) +++ trunk/nhibernate/src/NHibernate/Impl/CriteriaImpl.cs 2011-03-22 18:46:20 UTC (rev 5503) @@ -658,10 +658,7 @@ root.subcriteriaList.Add(this); root.subcriteriaByPath[path] = this; - if (alias != null) - { - root.subcriteriaByAlias[alias] = this; - } + SetAlias(alias); } internal Subcriteria(CriteriaImpl root, ICriteria parent, string path, string alias, JoinType joinType) @@ -693,12 +690,7 @@ public string Alias { get { return alias; } - set - { - root.subcriteriaByAlias.Remove(alias); - alias = value; - root.subcriteriaByAlias[alias] = this; - } + set { SetAlias(value); } } public LockMode LockMode @@ -936,6 +928,19 @@ // implemented only for compatibility with CriteriaTransformer return root.Clone(); } + + private void SetAlias(string newAlias) + { + if (alias != null) + { + root.subcriteriaByAlias.Remove(alias); + } + if (newAlias != null) + { + root.subcriteriaByAlias[newAlias] = this; + } + alias = newAlias; + } } [Serializable] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-22 18:28:19
|
Revision: 5502 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5502&view=rev Author: fabiomaulo Date: 2011-03-22 18:28:13 +0000 (Tue, 22 Mar 2011) Log Message: ----------- Fix NH-2518 Modified Paths: -------------- trunk/nhibernate/src/NHibernate/AdoNet/Util/SqlStatementLogger.cs Modified: trunk/nhibernate/src/NHibernate/AdoNet/Util/SqlStatementLogger.cs =================================================================== --- trunk/nhibernate/src/NHibernate/AdoNet/Util/SqlStatementLogger.cs 2011-03-22 17:16:27 UTC (rev 5501) +++ trunk/nhibernate/src/NHibernate/AdoNet/Util/SqlStatementLogger.cs 2011-03-22 18:28:13 UTC (rev 5502) @@ -129,12 +129,19 @@ private static string GetBufferAsHexString(byte[] buffer) { - var sb = new StringBuilder(buffer.Length * 2 + 2); + const int maxBytes = 128; + int bufferLength = buffer.Length; + + var sb = new StringBuilder(maxBytes * 2 + 8); sb.Append("0x"); - foreach (var b in buffer) + for (int i = 0; i < bufferLength && i < maxBytes; i++) { - sb.Append(b.ToString("X2")); + sb.Append(buffer[i].ToString("X2")); } + if(bufferLength > maxBytes) + { + sb.Append("..."); + } return sb.ToString(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-22 17:16:33
|
Revision: 5501 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5501&view=rev Author: fabiomaulo Date: 2011-03-22 17:16:27 +0000 (Tue, 22 Mar 2011) Log Message: ----------- Fixed test to reflect the mapping/code published by the user. Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1217/Fixture.cs trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1217/Mappings.hbm.xml Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1217/Fixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1217/Fixture.cs 2011-03-22 17:01:13 UTC (rev 5500) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1217/Fixture.cs 2011-03-22 17:16:27 UTC (rev 5501) @@ -46,9 +46,6 @@ e1.ToNode = n2; n1.FromEdges.Add(e1); - n1.ToEdges.Add(e1); - - n2.FromEdges.Add(e1); n2.ToEdges.Add(e1); s.Save(r); Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1217/Mappings.hbm.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1217/Mappings.hbm.xml 2011-03-22 17:01:13 UTC (rev 5500) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1217/Mappings.hbm.xml 2011-03-22 17:16:27 UTC (rev 5501) @@ -9,7 +9,7 @@ </id> <version name="VersionNumber" /> <property name="Name" length="20" not-null="true" unique="true" /> - <bag name="Nodes" cascade="save-update"> + <bag name="Nodes" inverse="true" cascade="save-update"> <key column="RootId" /> <one-to-many class="Node" /> </bag> @@ -23,11 +23,11 @@ <version name="VersionNumber" /> <property name="Label" length="20" not-null="true" /> <many-to-one name="Root" class="Root" column="RootId" not-null="true" /> - <set name="FromEdges" cascade="save-update" optimistic-lock="false"> + <set name="FromEdges" inverse="true" cascade="save-update" optimistic-lock="false"> <key column="FromNodeId" /> <one-to-many class="Edge" /> </set> - <set name="ToEdges" cascade="save-update"> + <set name="ToEdges" inverse="true" cascade="save-update"> <key column="ToNodeId" /> <one-to-many class="Edge" /> </set> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-22 17:01:20
|
Revision: 5500 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5500&view=rev Author: fabiomaulo Date: 2011-03-22 17:01:13 +0000 (Tue, 22 Mar 2011) Log Message: ----------- Fix NH-2591 Modified Paths: -------------- trunk/nhibernate/src/NHibernate/AdoNet/AbstractBatcher.cs trunk/nhibernate/src/NHibernate/Cfg/Environment.cs trunk/nhibernate/src/NHibernate/Cfg/Loquacious/DbIntegrationConfiguration.cs trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IBatcherConfiguration.cs trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IDbIntegrationConfiguration.cs trunk/nhibernate/src/NHibernate/Cfg/SettingsFactory.cs trunk/nhibernate/src/NHibernate/nhibernate-configuration.xsd trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj Added Paths: ----------- trunk/nhibernate/src/NHibernate.Test/Insertordering/ trunk/nhibernate/src/NHibernate.Test/Insertordering/Group.cs trunk/nhibernate/src/NHibernate.Test/Insertordering/InsertOrderingFixture.cs trunk/nhibernate/src/NHibernate.Test/Insertordering/Mapping.hbm.xml trunk/nhibernate/src/NHibernate.Test/Insertordering/Membership.cs trunk/nhibernate/src/NHibernate.Test/Insertordering/User.cs Modified: trunk/nhibernate/src/NHibernate/AdoNet/AbstractBatcher.cs =================================================================== --- trunk/nhibernate/src/NHibernate/AdoNet/AbstractBatcher.cs 2011-03-22 05:14:35 UTC (rev 5499) +++ trunk/nhibernate/src/NHibernate/AdoNet/AbstractBatcher.cs 2011-03-22 17:01:13 UTC (rev 5500) @@ -122,7 +122,7 @@ } } - public IDbCommand PrepareBatchCommand(CommandType type, SqlString sql, SqlType[] parameterTypes) + public virtual IDbCommand PrepareBatchCommand(CommandType type, SqlString sql, SqlType[] parameterTypes) { /* NH: * The code inside this block was added for a strange behaviour Modified: trunk/nhibernate/src/NHibernate/Cfg/Environment.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Cfg/Environment.cs 2011-03-22 05:14:35 UTC (rev 5499) +++ trunk/nhibernate/src/NHibernate/Cfg/Environment.cs 2011-03-22 17:01:13 UTC (rev 5500) @@ -162,6 +162,9 @@ public const string LinqToHqlGeneratorsRegistry = "linqtohql.generatorsregistry"; + /// <summary> Enable ordering of insert statements for the purpose of more effecient batching.</summary> + public const string OrderInserts = "order_inserts"; + private static readonly Dictionary<string, string> GlobalProperties; private static IBytecodeProvider BytecodeProviderInstance; Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/DbIntegrationConfiguration.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/DbIntegrationConfiguration.cs 2011-03-22 05:14:35 UTC (rev 5499) +++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/DbIntegrationConfiguration.cs 2011-03-22 17:01:13 UTC (rev 5500) @@ -207,6 +207,18 @@ return dbc; } + public IBatcherConfiguration OrderingInserts() + { + dbc.Configuration.SetProperty(Environment.OrderInserts, true.ToString().ToLowerInvariant()); + return this; + } + + public IBatcherConfiguration DisablingInsertsOrdering() + { + dbc.Configuration.SetProperty(Environment.OrderInserts, false.ToString().ToLowerInvariant()); + return this; + } + #endregion } @@ -337,6 +349,11 @@ set { configuration.SetProperty(Environment.BatchSize, value.ToString()); } } + public bool OrderInserts + { + set { configuration.SetProperty(Environment.OrderInserts, value.ToString().ToLowerInvariant()); } + } + public void TransactionFactory<TFactory>() where TFactory : ITransactionFactory { configuration.SetProperty(Environment.TransactionStrategy, typeof(TFactory).AssemblyQualifiedName); Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IBatcherConfiguration.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IBatcherConfiguration.cs 2011-03-22 05:14:35 UTC (rev 5499) +++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IBatcherConfiguration.cs 2011-03-22 17:01:13 UTC (rev 5500) @@ -5,5 +5,7 @@ { IBatcherConfiguration Through<TBatcher>() where TBatcher : IBatcherFactory; IDbIntegrationConfiguration Each(short batchSize); + IBatcherConfiguration OrderingInserts(); + IBatcherConfiguration DisablingInsertsOrdering(); } } \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IDbIntegrationConfiguration.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IDbIntegrationConfiguration.cs 2011-03-22 05:14:35 UTC (rev 5499) +++ trunk/nhibernate/src/NHibernate/Cfg/Loquacious/IDbIntegrationConfiguration.cs 2011-03-22 17:01:13 UTC (rev 5500) @@ -47,6 +47,7 @@ void Batcher<TBatcher>() where TBatcher : IBatcherFactory; short BatchSize { set; } + bool OrderInserts { set; } void TransactionFactory<TFactory>() where TFactory : ITransactionFactory; Modified: trunk/nhibernate/src/NHibernate/Cfg/SettingsFactory.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Cfg/SettingsFactory.cs 2011-03-22 05:14:35 UTC (rev 5499) +++ trunk/nhibernate/src/NHibernate/Cfg/SettingsFactory.cs 2011-03-22 17:01:13 UTC (rev 5500) @@ -229,6 +229,10 @@ // TODO: Environment.BatchVersionedData settings.AdoBatchSize = PropertiesHelper.GetInt32(Environment.BatchSize, properties, 0); + bool orderInserts = PropertiesHelper.GetBoolean(Environment.OrderInserts, properties, (settings.AdoBatchSize > 0)); + log.Info("Order SQL inserts for batching: " + EnabledDisabled(orderInserts)); + settings.IsOrderInsertsEnabled = orderInserts; + bool wrapResultSets = PropertiesHelper.GetBoolean(Environment.WrapResultSets, properties, false); log.Debug("Wrap result sets: " + EnabledDisabled(wrapResultSets)); settings.IsWrapResultSetsEnabled = wrapResultSets; Modified: trunk/nhibernate/src/NHibernate/nhibernate-configuration.xsd =================================================================== --- trunk/nhibernate/src/NHibernate/nhibernate-configuration.xsd 2011-03-22 05:14:35 UTC (rev 5499) +++ trunk/nhibernate/src/NHibernate/nhibernate-configuration.xsd 2011-03-22 17:01:13 UTC (rev 5500) @@ -114,7 +114,8 @@ <xs:enumeration value="use_sql_comments" /> <xs:enumeration value="format_sql" /> <xs:enumeration value="collectiontype.factory_class" /> - </xs:restriction> + <xs:enumeration value="order_inserts" /> + </xs:restriction> </xs:simpleType> </xs:attribute> </xs:extension> Added: trunk/nhibernate/src/NHibernate.Test/Insertordering/Group.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/Insertordering/Group.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/Insertordering/Group.cs 2011-03-22 17:01:13 UTC (rev 5500) @@ -0,0 +1,8 @@ +namespace NHibernate.Test.Insertordering +{ + public class Group + { + public virtual int Id { get; protected set; } + public virtual string Name { get; set; } + } +} \ No newline at end of file Added: trunk/nhibernate/src/NHibernate.Test/Insertordering/InsertOrderingFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/Insertordering/InsertOrderingFixture.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/Insertordering/InsertOrderingFixture.cs 2011-03-22 17:01:13 UTC (rev 5500) @@ -0,0 +1,146 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Data; +using NHibernate.AdoNet; +using NHibernate.Cfg; +using NHibernate.Cfg.Loquacious; +using NHibernate.Engine; +using NHibernate.SqlCommand; +using NHibernate.SqlTypes; +using NUnit.Framework; +using SharpTestsEx; + +namespace NHibernate.Test.Insertordering +{ + public class InsertOrderingFixture : TestCase + { + const int batchSize = 10; + const int instancesPerEach = 12; + const int typesOfEntities = 3; + protected override IList Mappings + { + get { return new[] {"Insertordering.Mapping.hbm.xml"}; } + } + + protected override string MappingsAssembly + { + get { return "NHibernate.Test"; } + } + + protected override void Configure(Configuration configuration) + { + configuration.DataBaseIntegration(x => + { + x.BatchSize = batchSize; + x.OrderInserts = true; + x.Batcher<StatsBatcherFactory>(); + }); + } + + [Test] + public void BatchOrdering() + { + using (ISession s = OpenSession()) + using (s.BeginTransaction()) + { + for (int i = 0; i < instancesPerEach; i++) + { + var user = new User {UserName = "user-" + i}; + var group = new Group {Name = "group-" + i}; + s.Save(user); + s.Save(group); + user.AddMembership(group); + } + StatsBatcher.Reset(); + s.Transaction.Commit(); + } + + int expectedBatchesPerEntity = (instancesPerEach / batchSize) + ((instancesPerEach % batchSize) == 0 ? 0 : 1); + StatsBatcher.BatchSizes.Count.Should().Be(expectedBatchesPerEntity * typesOfEntities); + + using (ISession s = OpenSession()) + { + s.BeginTransaction(); + IList users = s.CreateQuery("from User u left join fetch u.Memberships m left join fetch m.Group").List(); + foreach (object user in users) + { + s.Delete(user); + } + s.Transaction.Commit(); + } + } + + #region Nested type: StatsBatcher + + public class StatsBatcher : SqlClientBatchingBatcher + { + private static string batchSQL; + private static IList<int> batchSizes = new List<int>(); + private static int currentBatch = -1; + + public StatsBatcher(ConnectionManager connectionManager, IInterceptor interceptor) + : base(connectionManager, interceptor) {} + + public static IList<int> BatchSizes + { + get { return batchSizes; } + } + + public static void Reset() + { + batchSizes = new List<int>(); + currentBatch = -1; + batchSQL = null; + } + + public override IDbCommand PrepareBatchCommand(CommandType type, SqlString sql, SqlType[] parameterTypes) + { + IDbCommand result = base.PrepareBatchCommand(type, sql, parameterTypes); + string sqlstring = sql.ToString(); + if (batchSQL == null || !sqlstring.Equals(batchSQL)) + { + currentBatch++; + batchSQL = sqlstring; + batchSizes.Insert(currentBatch, 0); + Console.WriteLine("--------------------------------------------------------"); + Console.WriteLine("Preparing statement [" + batchSQL + "]"); + } + return result; + } + + public override void AddToBatch(IExpectation expectation) + { + batchSizes[currentBatch]++; + Console.WriteLine("Adding to batch [" + batchSQL + "]"); + base.AddToBatch(expectation); + } + + protected override void DoExecuteBatch(IDbCommand ps) + { + Console.WriteLine("executing batch [" + batchSQL + "]"); + Console.WriteLine("--------------------------------------------------------"); + batchSQL = null; + base.DoExecuteBatch(ps); + } + } + + #endregion + + #region Nested type: StatsBatcherFactory + + public class StatsBatcherFactory : IBatcherFactory + { + #region IBatcherFactory Members + + public IBatcher CreateBatcher(ConnectionManager connectionManager, IInterceptor interceptor) + { + return new StatsBatcher(connectionManager, interceptor); + } + + #endregion + } + + #endregion + } +} \ No newline at end of file Added: trunk/nhibernate/src/NHibernate.Test/Insertordering/Mapping.hbm.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Test/Insertordering/Mapping.hbm.xml (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/Insertordering/Mapping.hbm.xml 2011-03-22 17:01:13 UTC (rev 5500) @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8" ?> +<hibernate-mapping + xmlns="urn:nhibernate-mapping-2.2" + namespace="NHibernate.Test.Insertordering" + assembly="NHibernate.Test"> + + <class name="User" table="INS_ORD_USR"> + <id name="Id"> + <generator class="increment"/> + </id> + <property name="UserName" column="USR_NM" /> + <set name="Memberships" inverse="true" cascade="all" access="field.camelcase"> + <key column="USR_ID"/> + <one-to-many class="Membership"/> + </set> + </class> + + <class name="Group" table="INS_ORD_GRP"> + <id name="Id"> + <generator class="increment"/> + </id> + <property name="Name"/> + </class> + + <class name="Membership" table="INS_ORD_MEM"> + <id name="Id"> + <generator class="increment" /> + </id> + <many-to-one name="User" class="User" column="USR_ID" cascade="all"/> + <many-to-one name="Group" class="Group" column="GRP_ID" cascade="all"/> + <property name="ActivationDate" type="timestamp" column="JN_DT"/> + </class> +</hibernate-mapping> Added: trunk/nhibernate/src/NHibernate.Test/Insertordering/Membership.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/Insertordering/Membership.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/Insertordering/Membership.cs 2011-03-22 17:01:13 UTC (rev 5500) @@ -0,0 +1,23 @@ +using System; + +namespace NHibernate.Test.Insertordering +{ + public class Membership + { + protected Membership() {} + + public Membership(User user, Group @group) : this(user, group, DateTime.Now) {} + + public Membership(User user, Group @group, DateTime activationDate) + { + User = user; + Group = group; + ActivationDate = activationDate; + } + + public virtual int Id { get; protected set; } + public virtual User User { get; private set; } + public virtual Group Group { get; private set; } + public virtual DateTime ActivationDate { get; private set; } + } +} \ No newline at end of file Added: trunk/nhibernate/src/NHibernate.Test/Insertordering/User.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/Insertordering/User.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/Insertordering/User.cs 2011-03-22 17:01:13 UTC (rev 5500) @@ -0,0 +1,27 @@ +using System.Collections.Generic; +using Iesi.Collections.Generic; + +namespace NHibernate.Test.Insertordering +{ + public class User + { + private ISet<Membership> memberships; + public User() + { + memberships = new HashedSet<Membership>(); + } + public virtual int Id { get; protected set; } + public virtual string UserName { get; set; } + public virtual IEnumerable<Membership> Memberships + { + get { return memberships; } + } + + public virtual Membership AddMembership(Group group) + { + var membership = new Membership(this, group); + memberships.Add(membership); + return membership; + } + } +} \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-03-22 05:14:35 UTC (rev 5499) +++ trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-03-22 17:01:13 UTC (rev 5500) @@ -459,6 +459,10 @@ <Compile Include="Immutable\Info.cs" /> <Compile Include="Immutable\Party.cs" /> <Compile Include="Immutable\Plan.cs" /> + <Compile Include="Insertordering\Group.cs" /> + <Compile Include="Insertordering\InsertOrderingFixture.cs" /> + <Compile Include="Insertordering\Membership.cs" /> + <Compile Include="Insertordering\User.cs" /> <Compile Include="LazyOneToOne\Employee.cs" /> <Compile Include="LazyOneToOne\Employment.cs" /> <Compile Include="LazyOneToOne\LazyOneToOneTest.cs" /> @@ -2472,6 +2476,7 @@ <EmbeddedResource Include="NHSpecificTest\NH1291AnonExample\Mappings.hbm.xml" /> </ItemGroup> <ItemGroup> + <EmbeddedResource Include="Insertordering\Mapping.hbm.xml" /> <EmbeddedResource Include="NHSpecificTest\NH2530\Mappings.hbm.xml" /> <EmbeddedResource Include="DynamicProxyTests\InterfaceProxySerializationTests\ProxyImpl.hbm.xml" /> <EmbeddedResource Include="NHSpecificTest\NH2565\Mappings.hbm.xml" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pa...@us...> - 2011-03-22 05:14:42
|
Revision: 5499 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5499&view=rev Author: patearl Date: 2011-03-22 05:14:35 +0000 (Tue, 22 Mar 2011) Log Message: ----------- SQLite: Made year, month, day, hour, minute, and second functions return integers instead of zero padded strings. Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs Modified: trunk/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs 2011-03-21 21:27:07 UTC (rev 5498) +++ trunk/nhibernate/src/NHibernate/Dialect/SQLiteDialect.cs 2011-03-22 05:14:35 UTC (rev 5499) @@ -48,12 +48,13 @@ RegisterColumnType(DbType.Boolean, "INTEGER"); RegisterColumnType(DbType.Guid, "UNIQUEIDENTIFIER"); - RegisterFunction("second", new SQLFunctionTemplate(NHibernateUtil.String, "strftime('%S', ?1)")); - RegisterFunction("minute", new SQLFunctionTemplate(NHibernateUtil.String, "strftime('%M', ?1)")); - RegisterFunction("hour", new SQLFunctionTemplate(NHibernateUtil.String, "strftime('%H', ?1)")); - RegisterFunction("day", new SQLFunctionTemplate(NHibernateUtil.String, "strftime('%d', ?1)")); - RegisterFunction("month", new SQLFunctionTemplate(NHibernateUtil.String, "strftime('%m', ?1)")); - RegisterFunction("year", new SQLFunctionTemplate(NHibernateUtil.String, "strftime('%Y', ?1)")); + // Using strftime returns 0-padded strings. '07' <> 7, so it is better to convert to an integer. + RegisterFunction("second", new SQLFunctionTemplate(NHibernateUtil.Int32, "cast(strftime('%S', ?1) as int)")); + RegisterFunction("minute", new SQLFunctionTemplate(NHibernateUtil.Int32, "cast(strftime('%M', ?1) as int)")); + RegisterFunction("hour", new SQLFunctionTemplate(NHibernateUtil.Int32, "cast(strftime('%H', ?1) as int)")); + RegisterFunction("day", new SQLFunctionTemplate(NHibernateUtil.Int32, "cast(strftime('%d', ?1) as int)")); + RegisterFunction("month", new SQLFunctionTemplate(NHibernateUtil.Int32, "cast(strftime('%m', ?1) as int)")); + RegisterFunction("year", new SQLFunctionTemplate(NHibernateUtil.Int32, "cast(strftime('%Y', ?1) as int)")); // Uses local time like MSSQL and PostgreSQL. RegisterFunction("current_timestamp", new SQLFunctionTemplate(NHibernateUtil.DateTime, "datetime(current_timestamp, 'localtime')")); // The System.Data.SQLite driver stores both Date and DateTime as 'YYYY-MM-DD HH:MM:SS' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-21 21:27:13
|
Revision: 5498 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5498&view=rev Author: fabiomaulo Date: 2011-03-21 21:27:07 +0000 (Mon, 21 Mar 2011) Log Message: ----------- Minor (refactorized test to be sure that it will be executed) Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1304/Fixture.cs Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1304/Fixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1304/Fixture.cs 2011-03-21 20:09:18 UTC (rev 5497) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1304/Fixture.cs 2011-03-21 21:27:07 UTC (rev 5498) @@ -1,27 +1,33 @@ using System.Text; using log4net.Core; +using NHibernate.Cfg; using NHibernate.Tuple.Entity; using NUnit.Framework; namespace NHibernate.Test.NHSpecificTest.NH1304 { [TestFixture] - public class Fixture : BugTestCase + public class Fixture { - protected override void BuildSessionFactory() + [Test] + public void WhenNoCustomAccessorIsDefinedThenSholdFindOnlyNoCustom() { - using (LogSpy ls = new LogSpy(typeof (AbstractEntityTuplizer))) + var cfg = new Configuration(); + if (TestConfigurationHelper.hibernateConfigFile != null) + cfg.Configure(TestConfigurationHelper.hibernateConfigFile); + cfg.AddResource("NHibernate.Test.NHSpecificTest.NH1304.Mappings.hbm.xml", GetType().Assembly); + using (LogSpy ls = new LogSpy(typeof(AbstractEntityTuplizer))) { - base.BuildSessionFactory(); + cfg.BuildSessionFactory(); StringBuilder wholeMessage = new StringBuilder(); foreach (LoggingEvent loggingEvent in ls.Appender.GetEvents()) { string singleMessage = loggingEvent.RenderedMessage; if (singleMessage.IndexOf("AbstractEntityTuplizer") > 0) - Assert.Greater(singleMessage.IndexOf("No custom accessors found"), -1); + Assert.Greater(singleMessage.IndexOf("No custom"), -1); wholeMessage.Append(singleMessage); } string logs = wholeMessage.ToString(); - Assert.AreEqual(-1, logs.IndexOf("Custom accessors found")); + Assert.AreEqual(-1, logs.IndexOf("Custom")); } } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-21 20:09:24
|
Revision: 5497 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5497&view=rev Author: fabiomaulo Date: 2011-03-21 20:09:18 +0000 (Mon, 21 Mar 2011) Log Message: ----------- Fix NH-2498 Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs trunk/nhibernate/src/NHibernate/Intercept/AbstractFieldInterceptor.cs trunk/nhibernate/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs trunk/nhibernate/src/NHibernate.Test/GhostProperty/Mappings.hbm.xml trunk/nhibernate/src/NHibernate.Test/GhostProperty/Order.cs Modified: trunk/nhibernate/src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs 2011-03-21 18:08:32 UTC (rev 5496) +++ trunk/nhibernate/src/NHibernate/Cfg/XmlHbmBinding/ClassBinder.cs 2011-03-21 20:09:18 UTC (rev 5497) @@ -439,8 +439,9 @@ // Note : fetch="join" overrides default laziness bool isLazyTrue = !laziness.HasValue ? defaultLazy && fetchable.IsLazy - : laziness == HbmLaziness.Proxy; + : (laziness == HbmLaziness.Proxy || laziness == HbmLaziness.NoProxy); fetchable.IsLazy = isLazyTrue; + fetchable.UnwrapProxy = laziness == HbmLaziness.NoProxy; } protected void InitOuterJoinFetchSetting(HbmManyToMany manyToMany, IFetchable model) Modified: trunk/nhibernate/src/NHibernate/Intercept/AbstractFieldInterceptor.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Intercept/AbstractFieldInterceptor.cs 2011-03-21 18:08:32 UTC (rev 5496) +++ trunk/nhibernate/src/NHibernate/Intercept/AbstractFieldInterceptor.cs 2011-03-21 20:09:18 UTC (rev 5497) @@ -26,7 +26,7 @@ { this.session = session; this.uninitializedFields = uninitializedFields; - this.unwrapProxyFieldNames = unwrapProxyFieldNames; + this.unwrapProxyFieldNames = unwrapProxyFieldNames ?? new HashedSet<string>(); this.entityName = entityName; this.mappedClass = mappedClass; } @@ -50,11 +50,7 @@ public bool IsInitializedField(string field) { - if (unwrapProxyFieldNames != null && unwrapProxyFieldNames.Contains(field)) - { - return loadedUnwrapProxyFieldNames.Contains(field); - } - return uninitializedFields == null || !uninitializedFields.Contains(field); + return !IsUninitializedProperty(field) && !IsUninitializedAssociation(field); } public void MarkDirty() @@ -89,14 +85,16 @@ get { return initializing; } } - // NH Specific: Hibernate only deals with lazy properties here, we deal with - // both lazy properties and with no-proxy. public object Intercept(object target, string fieldName, object value) { + // NH Specific: Hibernate only deals with lazy properties here, we deal with + // both lazy properties and with no-proxy. if (initializing) + { return InvokeImplementation; + } - if (!IsUninitializedProperty(fieldName)) + if (IsInitializedField(fieldName)) { return value; } @@ -114,16 +112,20 @@ { return InitializeField(fieldName, target); } - - if (value.IsProxy() && unwrapProxyFieldNames != null && unwrapProxyFieldNames.Contains(fieldName)) + + if (value.IsProxy() && IsUninitializedAssociation(fieldName)) { - var nhproxy = value as INHibernateProxy; - - return InitializeOrGetAssociation(nhproxy, fieldName); + var nhproxy = value as INHibernateProxy; + return InitializeOrGetAssociation(nhproxy, fieldName); } return InvokeImplementation; } + private bool IsUninitializedAssociation(string fieldName) + { + return unwrapProxyFieldNames.Contains(fieldName) && !loadedUnwrapProxyFieldNames.Contains(fieldName); + } + private bool IsUninitializedProperty(string fieldName) { return uninitializedFields != null && uninitializedFields.Contains(fieldName); Modified: trunk/nhibernate/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs 2011-03-21 18:08:32 UTC (rev 5496) +++ trunk/nhibernate/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs 2011-03-21 20:09:18 UTC (rev 5497) @@ -1,6 +1,8 @@ using System.Collections; +using NHibernate.Cfg.Loquacious; using NHibernate.Tuple.Entity; using NUnit.Framework; +using SharpTestsEx; namespace NHibernate.Test.GhostProperty { @@ -19,6 +21,11 @@ get { return new[] { "GhostProperty.Mappings.hbm.xml" }; } } + protected override void Configure(Cfg.Configuration configuration) + { + configuration.DataBaseIntegration(x=> x.LogFormatedSql = false); + } + protected override void OnSetUp() { using (var s = OpenSession()) @@ -109,6 +116,51 @@ } } + [Test] + public void WillLoadGhostAssociationOnAccess() + { + // NH-2498 + using (ISession s = OpenSession()) + { + Order order; + using (var ls = new SqlLogSpy()) + { + order = s.Get<Order>(1); + var logMessage = ls.GetWholeLog(); + logMessage.Should().Not.Contain("FROM Payment"); + } + order.Satisfy(o => !NHibernateUtil.IsPropertyInitialized(o, "Payment")); + // trigger on-access lazy load + var x = order.Payment; + order.Satisfy(o => NHibernateUtil.IsPropertyInitialized(o, "Payment")); + } + } + + [Test] + public void WhenGetThenLoadOnlyNoLazyPlainProperties() + { + using (ISession s = OpenSession()) + { + Order order; + using (var ls = new SqlLogSpy()) + { + order = s.Get<Order>(1); + var logMessage = ls.GetWholeLog(); + logMessage.Should().Not.Contain("ALazyProperty"); + logMessage.Should().Contain("NoLazyProperty"); + } + order.Satisfy(o => NHibernateUtil.IsPropertyInitialized(o, "NoLazyProperty")); + order.Satisfy(o => !NHibernateUtil.IsPropertyInitialized(o, "ALazyProperty")); + + using (var ls = new SqlLogSpy()) + { + var x = order.ALazyProperty; + var logMessage = ls.GetWholeLog(); + logMessage.Should().Contain("ALazyProperty"); + } + order.Satisfy(o => NHibernateUtil.IsPropertyInitialized(o, "ALazyProperty")); + } + } } } \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Test/GhostProperty/Mappings.hbm.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Test/GhostProperty/Mappings.hbm.xml 2011-03-21 18:08:32 UTC (rev 5496) +++ trunk/nhibernate/src/NHibernate.Test/GhostProperty/Mappings.hbm.xml 2011-03-21 20:09:18 UTC (rev 5497) @@ -8,9 +8,12 @@ <generator class="assigned" /> </id> <many-to-one name="Payment" lazy="no-proxy"/> - </class> + <property name="ALazyProperty" lazy="true"/> + <property name="NoLazyProperty"/> + </class> + <class name="Payment" abstract="true"> <id name="Id"> <generator class="assigned" /> Modified: trunk/nhibernate/src/NHibernate.Test/GhostProperty/Order.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/GhostProperty/Order.cs 2011-03-21 18:08:32 UTC (rev 5496) +++ trunk/nhibernate/src/NHibernate.Test/GhostProperty/Order.cs 2011-03-21 20:09:18 UTC (rev 5497) @@ -10,6 +10,9 @@ get { return payment; } set { payment = value; } } + + public virtual string ALazyProperty { get; set; } + public virtual string NoLazyProperty { get; set; } } public abstract class Payment This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-21 18:08:38
|
Revision: 5496 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5496&view=rev Author: fabiomaulo Date: 2011-03-21 18:08:32 +0000 (Mon, 21 Mar 2011) Log Message: ----------- Minor Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Type/EntityType.cs Modified: trunk/nhibernate/src/NHibernate/Type/EntityType.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Type/EntityType.cs 2011-03-21 15:06:30 UTC (rev 5495) +++ trunk/nhibernate/src/NHibernate/Type/EntityType.cs 2011-03-21 18:08:32 UTC (rev 5496) @@ -389,16 +389,17 @@ /// </summary> protected object ResolveIdentifier(object id, ISessionImplementor session) { + string entityName = GetAssociatedEntityName(); bool isProxyUnwrapEnabled = unwrapProxy && session.Factory - .GetEntityPersister(GetAssociatedEntityName()) + .GetEntityPersister(entityName) .IsInstrumented(session.EntityMode); - object proxyOrEntity = session.InternalLoad(GetAssociatedEntityName(), id, eager, IsNullable && !isProxyUnwrapEnabled); + object proxyOrEntity = session.InternalLoad(entityName, id, eager, IsNullable && !isProxyUnwrapEnabled); if (proxyOrEntity.IsProxy()) { - INHibernateProxy proxy = proxyOrEntity as INHibernateProxy; - proxy.HibernateLazyInitializer.Unwrap = isProxyUnwrapEnabled; + INHibernateProxy proxy = (INHibernateProxy) proxyOrEntity; + proxy.HibernateLazyInitializer.Unwrap = isProxyUnwrapEnabled; } return proxyOrEntity; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-21 15:06:37
|
Revision: 5495 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5495&view=rev Author: fabiomaulo Date: 2011-03-21 15:06:30 +0000 (Mon, 21 Mar 2011) Log Message: ----------- Fix NH-2530 Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Id/TableGenerator.cs trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj Added Paths: ----------- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/Domain.cs trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/Mappings.hbm.xml Modified: trunk/nhibernate/src/NHibernate/Id/TableGenerator.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Id/TableGenerator.cs 2011-03-21 14:11:22 UTC (rev 5494) +++ trunk/nhibernate/src/NHibernate/Id/TableGenerator.cs 2011-03-21 15:06:30 UTC (rev 5495) @@ -231,7 +231,15 @@ rs = qps.ExecuteReader(); if (!rs.Read()) { - string err = "could not read a hi value - you need to populate the table: " + tableName; + string err; + if (string.IsNullOrEmpty(whereClause)) + { + err = "could not read a hi value - you need to populate the table: " + tableName; + } + else + { + err = string.Format("could not read a hi value from table '{0}' using the where clause ({1})- you need to populate the table.", tableName, whereClause); + } log.Error(err); throw new IdentifierGenerationException(err); } Added: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/Domain.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/Domain.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/Domain.cs 2011-03-21 15:06:30 UTC (rev 5495) @@ -0,0 +1,14 @@ +namespace NHibernate.Test.NHSpecificTest.NH2530 +{ + public abstract class Product + { + public virtual int Id { get; set; } + public virtual string Title { get; set; } + } + + public class Customer + { + public virtual int Id { get; set; } + public virtual string Name { get; set; } + } +} \ No newline at end of file Added: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/Fixture.cs 2011-03-21 15:06:30 UTC (rev 5495) @@ -0,0 +1,48 @@ +using System.Collections.Generic; +using System.Text; +using Iesi.Collections.Generic; +using NHibernate.Dialect; +using NHibernate.Mapping; +using NUnit.Framework; +using SharpTestsEx; + +namespace NHibernate.Test.NHSpecificTest.NH2530 +{ + public class Fixture: BugTestCase + { + protected override void Configure(Cfg.Configuration configuration) + { + configuration.AddAuxiliaryDatabaseObject(CreateHighLowScript(new[] { typeof(Product) })); + } + + private IAuxiliaryDatabaseObject CreateHighLowScript(IEnumerable<System.Type> entities) + { + var script = new StringBuilder(1024); + script.AppendLine("DELETE FROM NextHighVaues;"); + script.AppendLine("ALTER TABLE NextHighVaues ADD Entity VARCHAR(128) NOT NULL;"); + script.AppendLine("CREATE NONCLUSTERED INDEX IdxNextHighVauesEntity ON NextHighVaues (Entity ASC);"); + script.AppendLine("GO"); + foreach (var entity in entities) + { + script.AppendLine(string.Format("INSERT INTO [NextHighVaues] (Entity, NextHigh) VALUES ('{0}',1);", entity.Name)); + } + return new SimpleAuxiliaryDatabaseObject(script.ToString(), null, new HashedSet<string> { typeof(MsSql2000Dialect).FullName, typeof(MsSql2005Dialect).FullName, typeof(MsSql2008Dialect).FullName }); + } + + protected override bool AppliesTo(Dialect.Dialect dialect) + { + return (dialect is Dialect.MsSql2000Dialect); + } + + [Test] + public void WhenTryToGetHighThenExceptionShouldContainWhereClause() + { + using (var session = OpenSession()) + using (var tx = session.BeginTransaction()) + { + var customer = new Customer { Name = "Mengano" }; + session.Executing(s => s.Persist(customer)).Throws().And.ValueOf.Message.Should().Contain("Entity = 'Customer'"); + } + } + } +} \ No newline at end of file Added: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/Mappings.hbm.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/Mappings.hbm.xml (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2530/Mappings.hbm.xml 2011-03-21 15:06:30 UTC (rev 5495) @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!-- Mapping extracted from ConfORM usage example (ConfOrm.UsageExamples.HighLowPerEntity) --> +<hibernate-mapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" + namespace="NHibernate.Test.NHSpecificTest.NH2530" + assembly="NHibernate.Test" xmlns="urn:nhibernate-mapping-2.2"> + <class name="Product" abstract="true"> + <id name="Id" type="Int32"> + <generator class="hilo"> + <param name="table">NextHighVaues</param> + <param name="column">NextHigh</param> + <param name="max_lo">100</param> + <param name="where">Entity = 'Product'</param> + </generator> + </id> + <discriminator /> + <property name="Title" /> + </class> + <class name="Customer"> + <id name="Id" type="Int32"> + <generator class="hilo"> + <param name="table">NextHighVaues</param> + <param name="column">NextHigh</param> + <param name="max_lo">100</param> + <param name="where">Entity = 'Customer'</param> + </generator> + </id> + <property name="Name" /> + </class> +</hibernate-mapping> \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-03-21 14:11:22 UTC (rev 5494) +++ trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-03-21 15:06:30 UTC (rev 5495) @@ -646,6 +646,8 @@ <Compile Include="NHSpecificTest\NH2484\Model.cs" /> <Compile Include="NHSpecificTest\NH2507\Animal.cs" /> <Compile Include="NHSpecificTest\NH2507\Fixture.cs" /> + <Compile Include="NHSpecificTest\NH2530\Domain.cs" /> + <Compile Include="NHSpecificTest\NH2530\Fixture.cs" /> <Compile Include="NHSpecificTest\NH2565\Domain.cs" /> <Compile Include="NHSpecificTest\NH2565\Fixture.cs" /> <Compile Include="NHSpecificTest\Properties\CompositePropertyRefTest.cs" /> @@ -2470,6 +2472,7 @@ <EmbeddedResource Include="NHSpecificTest\NH1291AnonExample\Mappings.hbm.xml" /> </ItemGroup> <ItemGroup> + <EmbeddedResource Include="NHSpecificTest\NH2530\Mappings.hbm.xml" /> <EmbeddedResource Include="DynamicProxyTests\InterfaceProxySerializationTests\ProxyImpl.hbm.xml" /> <EmbeddedResource Include="NHSpecificTest\NH2565\Mappings.hbm.xml" /> <EmbeddedResource Include="NHSpecificTest\AccessAndCorrectPropertyName\DogMapping.hbm.xml" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-21 14:11:28
|
Revision: 5494 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5494&view=rev Author: fabiomaulo Date: 2011-03-21 14:11:22 +0000 (Mon, 21 Mar 2011) Log Message: ----------- Fix NH-2584 Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Event/Default/DefaultMergeEventListener.cs trunk/nhibernate/src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs Modified: trunk/nhibernate/src/NHibernate/Event/Default/DefaultMergeEventListener.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Event/Default/DefaultMergeEventListener.cs 2011-03-21 07:31:00 UTC (rev 5493) +++ trunk/nhibernate/src/NHibernate/Event/Default/DefaultMergeEventListener.cs 2011-03-21 14:11:22 UTC (rev 5494) @@ -124,6 +124,10 @@ @event.Entity = entity; EntityState entityState = EntityState.Undefined; + if (ReferenceEquals(null, @event.EntityName)) + { + @event.EntityName = source.BestGuessEntityName(entity); + } // Check the persistence context for an entry relating to this // entity to be merged... Modified: trunk/nhibernate/src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs 2011-03-21 07:31:00 UTC (rev 5493) +++ trunk/nhibernate/src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs 2011-03-21 14:11:22 UTC (rev 5494) @@ -116,5 +116,19 @@ } } + [Test] + public void CanLoadAndSaveObjectInDifferentSessions() + { + Book book; + using (ISession s = OpenSession()) + { + book = s.Get<Book>(1); + } + + using (ISession s = OpenSession()) + { + s.Merge(book); + } + } } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jul...@us...> - 2011-03-21 07:31:07
|
Revision: 5493 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5493&view=rev Author: julian-maughan Date: 2011-03-21 07:31:00 +0000 (Mon, 21 Mar 2011) Log Message: ----------- Updated HTML documentation version number Modified Paths: -------------- trunk/nhibernate/doc/reference/master.xml Modified: trunk/nhibernate/doc/reference/master.xml =================================================================== --- trunk/nhibernate/doc/reference/master.xml 2011-03-20 22:53:31 UTC (rev 5492) +++ trunk/nhibernate/doc/reference/master.xml 2011-03-21 07:31:00 UTC (rev 5493) @@ -39,7 +39,7 @@ <bookinfo> <title>NHibernate - Relational Persistence for Idiomatic .NET</title> <subtitle>NHibernate Reference Documentation</subtitle> - <releaseinfo>3.0.1</releaseinfo> + <releaseinfo>3.1</releaseinfo> </bookinfo> <toc /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 22:53:37
|
Revision: 5492 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5492&view=rev Author: fabiomaulo Date: 2011-03-20 22:53:31 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Minor Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Everything.sln Modified: trunk/nhibernate/src/NHibernate.Everything.sln =================================================================== --- trunk/nhibernate/src/NHibernate.Everything.sln 2011-03-20 22:51:38 UTC (rev 5491) +++ trunk/nhibernate/src/NHibernate.Everything.sln 2011-03-20 22:53:31 UTC (rev 5492) @@ -43,6 +43,7 @@ ..\readme.html = ..\readme.html ..\releasenotes.txt = ..\releasenotes.txt ..\sample build commands.txt = ..\sample build commands.txt + ..\ShowBuildMenu.bat = ..\ShowBuildMenu.bat EndProjectSection ProjectSection(FolderStartupServices) = postProject {B4F97281-0DBD-4835-9ED8-7DFB966E87FF} = {B4F97281-0DBD-4835-9ED8-7DFB966E87FF} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 22:51:44
|
Revision: 5491 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5491&view=rev Author: fabiomaulo Date: 2011-03-20 22:51:38 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Actualization of Configuration templates Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml trunk/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml trunk/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml trunk/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml trunk/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml trunk/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml trunk/nhibernate/src/NHibernate.Everything.sln Modified: trunk/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml 2011-03-20 21:25:16 UTC (rev 5490) +++ trunk/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml 2011-03-20 22:51:38 UTC (rev 5491) @@ -26,6 +26,5 @@ <property name="dialect">NHibernate.Dialect.FirebirdDialect</property> <property name="command_timeout">60</property> <property name="query.substitutions">true 1, false 0, yes 1, no 0</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> </session-factory> </hibernate-configuration> Modified: trunk/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml 2011-03-20 21:25:16 UTC (rev 5490) +++ trunk/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml 2011-03-20 22:51:38 UTC (rev 5491) @@ -17,6 +17,5 @@ <property name="use_outer_join">true</property> <property name="command_timeout">60</property> <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> </session-factory> </hibernate-configuration> \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml 2011-03-20 21:25:16 UTC (rev 5490) +++ trunk/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml 2011-03-20 22:51:38 UTC (rev 5491) @@ -12,6 +12,5 @@ Database=test;Data Source=someip;User Id=blah;Password=blah </property> <property name="dialect">NHibernate.Dialect.MySQLDialect</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> </session-factory> </hibernate-configuration> \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml 2011-03-20 21:25:16 UTC (rev 5490) +++ trunk/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml 2011-03-20 22:51:38 UTC (rev 5491) @@ -14,6 +14,5 @@ <property name="show_sql">false</property> <property name="dialect">NHibernate.Dialect.OracleDialect</property> <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> </session-factory> </hibernate-configuration> \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml 2011-03-20 21:25:16 UTC (rev 5490) +++ trunk/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml 2011-03-20 22:51:38 UTC (rev 5491) @@ -11,6 +11,5 @@ Server=localhost;initial catalog=nhibernate;User ID=nhibernate;Password=nhibernate; </property> <property name="dialect">NHibernate.Dialect.PostgreSQLDialect</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> </session-factory> </hibernate-configuration> \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml 2011-03-20 21:25:16 UTC (rev 5490) +++ trunk/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml 2011-03-20 22:51:38 UTC (rev 5491) @@ -12,6 +12,5 @@ </property> <property name="dialect">NHibernate.Dialect.SQLiteDialect</property> <property name="query.substitutions">true=1;false=0</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> </session-factory> </hibernate-configuration> \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Everything.sln =================================================================== --- trunk/nhibernate/src/NHibernate.Everything.sln 2011-03-20 21:25:16 UTC (rev 5490) +++ trunk/nhibernate/src/NHibernate.Everything.sln 2011-03-20 22:51:38 UTC (rev 5491) @@ -50,12 +50,12 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Configuration Templates", "Configuration Templates", "{936E50BD-4027-4864-ADE9-423C3FBF7FFB}" ProjectSection(SolutionItems) = preProject - NHibernate.Config.Templates\FireBird.cfg.xml.tmpl = NHibernate.Config.Templates\FireBird.cfg.xml.tmpl - NHibernate.Config.Templates\MSSQL.cfg.xml.tmpl = NHibernate.Config.Templates\MSSQL.cfg.xml.tmpl - NHibernate.Config.Templates\MySql.cfg.xml.tmpl = NHibernate.Config.Templates\MySql.cfg.xml.tmpl - NHibernate.Config.Templates\Oracle.cfg.xml.tmpl = NHibernate.Config.Templates\Oracle.cfg.xml.tmpl - NHibernate.Config.Templates\PostgreSQL.cfg.xml.tmpl = NHibernate.Config.Templates\PostgreSQL.cfg.xml.tmpl - NHibernate.Config.Templates\SQLite.cfg.xml.tmpl = NHibernate.Config.Templates\SQLite.cfg.xml.tmpl + NHibernate.Config.Templates\FireBird.cfg.xml = NHibernate.Config.Templates\FireBird.cfg.xml + NHibernate.Config.Templates\MSSQL.cfg.xml = NHibernate.Config.Templates\MSSQL.cfg.xml + NHibernate.Config.Templates\MySql.cfg.xml = NHibernate.Config.Templates\MySql.cfg.xml + NHibernate.Config.Templates\Oracle.cfg.xml = NHibernate.Config.Templates\Oracle.cfg.xml + NHibernate.Config.Templates\PostgreSQL.cfg.xml = NHibernate.Config.Templates\PostgreSQL.cfg.xml + NHibernate.Config.Templates\SQLite.cfg.xml = NHibernate.Config.Templates\SQLite.cfg.xml EndProjectSection ProjectSection(FolderStartupServices) = postProject {B4F97281-0DBD-4835-9ED8-7DFB966E87FF} = {B4F97281-0DBD-4835-9ED8-7DFB966E87FF} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 21:25:24
|
Revision: 5490 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5490&view=rev Author: fabiomaulo Date: 2011-03-20 21:25:16 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Removed unneeded files for .Net Removed Paths: ------------- trunk/nhibernate/lib/net/3.5/Castle.Core.dll trunk/nhibernate/lib/net/3.5/Castle.Core.pdb trunk/nhibernate/lib/net/3.5/Castle.Core.xml trunk/nhibernate/lib/net/3.5/Common.Logging.dll trunk/nhibernate/lib/net/3.5/LinFu.DynamicProxy.dll trunk/nhibernate/lib/net/3.5/LinFu.License.txt trunk/nhibernate/lib/net/3.5/Spring.Aop.dll trunk/nhibernate/lib/net/3.5/Spring.Aop.xml trunk/nhibernate/lib/net/3.5/Spring.Core.dll trunk/nhibernate/lib/net/3.5/Spring.Core.xml trunk/nhibernate/lib/net/3.5/antlr.runtime.dll Deleted: trunk/nhibernate/lib/net/3.5/Castle.Core.dll =================================================================== (Binary files differ) Deleted: trunk/nhibernate/lib/net/3.5/Castle.Core.pdb =================================================================== (Binary files differ) Deleted: trunk/nhibernate/lib/net/3.5/Castle.Core.xml =================================================================== --- trunk/nhibernate/lib/net/3.5/Castle.Core.xml 2011-03-20 21:21:43 UTC (rev 5489) +++ trunk/nhibernate/lib/net/3.5/Castle.Core.xml 2011-03-20 21:25:16 UTC (rev 5490) @@ -1,4927 +0,0 @@ -<?xml version="1.0"?> -<doc> - <assembly> - <name>Castle.Core</name> - </assembly> - <members> - <member name="T:Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute"> - <summary> - Assignes a specific dictionary key. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryBehavior"> - <summary> - Defines the contract for customizing dictionary access. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.IDictionaryBehavior.ExecutionOrder"> - <summary> - Determines relative order to apply related behaviors. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.DictionaryBehaviorAttribute.ExecutionOrder"> - <summary> - Determines relative order to apply related behaviors. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryPropertySetter"> - <summary> - Defines the contract for updating dictionary values. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryPropertySetter.SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter,System.String,System.Object@,Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <summary> - Sets the stored dictionary value. - </summary> - <param name="dictionaryAdapter">The dictionary adapter.</param> - <param name="key">The key.</param> - <param name="value">The stored value.</param> - <param name="property">The property.</param> - <returns>true if the property should be stored.</returns> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryBehaviorBuilder"> - <summary> - Defines the contract for building <see cref="T:Castle.Components.DictionaryAdapter.IDictionaryBehavior"/>s. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryBehaviorBuilder.BuildBehaviors"> - <summary> - Builds the dictionary behaviors. - </summary> - <returns></returns> - </member> - <member name="T:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter"> - <summary> - Abstract adapter for the <see cref="T:System.Collections.IDictionary"/> support - needed by the <see cref="T:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory"/> - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.Add(System.Object,System.Object)"> - <summary> - Adds an element with the provided key and value to the <see cref="T:System.Collections.IDictionary"></see> object. - </summary> - <param name="key">The <see cref="T:System.Object"></see> to use as the key of the element to add.</param> - <param name="value">The <see cref="T:System.Object"></see> to use as the value of the element to add.</param> - <exception cref="T:System.ArgumentException">An element with the same key already exists in the <see cref="T:System.Collections.IDictionary"></see> object. </exception> - <exception cref="T:System.ArgumentNullException">key is null. </exception> - <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.IDictionary"></see> is read-only.-or- The <see cref="T:System.Collections.IDictionary"></see> has a fixed size. </exception> - </member> - <member name="M:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.Clear"> - <summary> - Removes all elements from the <see cref="T:System.Collections.IDictionary"></see> object. - </summary> - <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.IDictionary"></see> object is read-only. </exception> - </member> - <member name="M:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.Contains(System.Object)"> - <summary> - Determines whether the <see cref="T:System.Collections.IDictionary"></see> object contains an element with the specified key. - </summary> - <param name="key">The key to locate in the <see cref="T:System.Collections.IDictionary"></see> object.</param> - <returns> - true if the <see cref="T:System.Collections.IDictionary"></see> contains an element with the key; otherwise, false. - </returns> - <exception cref="T:System.ArgumentNullException">key is null. </exception> - </member> - <member name="M:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.GetEnumerator"> - <summary> - Returns an <see cref="T:System.Collections.IDictionaryEnumerator"></see> object for the <see cref="T:System.Collections.IDictionary"></see> object. - </summary> - <returns> - An <see cref="T:System.Collections.IDictionaryEnumerator"></see> object for the <see cref="T:System.Collections.IDictionary"></see> object. - </returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.Remove(System.Object)"> - <summary> - Removes the element with the specified key from the <see cref="T:System.Collections.IDictionary"></see> object. - </summary> - <param name="key">The key of the element to remove.</param> - <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.IDictionary"></see> object is read-only.-or- The <see cref="T:System.Collections.IDictionary"></see> has a fixed size. </exception> - <exception cref="T:System.ArgumentNullException">key is null. </exception> - </member> - <member name="M:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.CopyTo(System.Array,System.Int32)"> - <summary> - Copies the elements of the <see cref="T:System.Collections.ICollection"></see> to an <see cref="T:System.Array"></see>, starting at a particular <see cref="T:System.Array"></see> index. - </summary> - <param name="array">The one-dimensional <see cref="T:System.Array"></see> that is the destination of the elements copied from <see cref="T:System.Collections.ICollection"></see>. The <see cref="T:System.Array"></see> must have zero-based indexing.</param> - <param name="index">The zero-based index in array at which copying begins.</param> - <exception cref="T:System.ArgumentNullException">array is null. </exception> - <exception cref="T:System.ArgumentException">The type of the source <see cref="T:System.Collections.ICollection"></see> cannot be cast automatically to the type of the destination array. </exception> - <exception cref="T:System.ArgumentOutOfRangeException">index is less than zero. </exception> - <exception cref="T:System.ArgumentException">array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source <see cref="T:System.Collections.ICollection"></see> is greater than the available space from index to the end of the destination array. </exception> - </member> - <member name="M:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.System#Collections#IEnumerable#GetEnumerator"> - <summary> - Returns an enumerator that iterates through a collection. - </summary> - <returns> - An <see cref="T:System.Collections.IEnumerator"></see> object that can be used to iterate through the collection. - </returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.IsFixedSize"> - <summary> - Gets a value indicating whether the <see cref="T:System.Collections.IDictionary"></see> object has a fixed size. - </summary> - <value></value> - <returns>true if the <see cref="T:System.Collections.IDictionary"></see> object has a fixed size; otherwise, false.</returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.IsReadOnly"> - <summary> - Gets a value indicating whether the <see cref="T:System.Collections.IDictionary"></see> object is read-only. - </summary> - <value></value> - <returns>true if the <see cref="T:System.Collections.IDictionary"></see> object is read-only; otherwise, false.</returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.Keys"> - <summary> - Gets an <see cref="T:System.Collections.ICollection"></see> object containing the keys of the <see cref="T:System.Collections.IDictionary"></see> object. - </summary> - <value></value> - <returns>An <see cref="T:System.Collections.ICollection"></see> object containing the keys of the <see cref="T:System.Collections.IDictionary"></see> object.</returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.Values"> - <summary> - Gets an <see cref="T:System.Collections.ICollection"></see> object containing the values in the <see cref="T:System.Collections.IDictionary"></see> object. - </summary> - <value></value> - <returns>An <see cref="T:System.Collections.ICollection"></see> object containing the values in the <see cref="T:System.Collections.IDictionary"></see> object.</returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.Item(System.Object)"> - <summary> - Gets or sets the <see cref="T:System.Object"/> with the specified key. - </summary> - <value></value> - </member> - <member name="P:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.Count"> - <summary> - Gets the number of elements contained in the <see cref="T:System.Collections.ICollection"></see>. - </summary> - <value></value> - <returns>The number of elements contained in the <see cref="T:System.Collections.ICollection"></see>.</returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.IsSynchronized"> - <summary> - Gets a value indicating whether access to the <see cref="T:System.Collections.ICollection"></see> is synchronized (thread safe). - </summary> - <value></value> - <returns>true if access to the <see cref="T:System.Collections.ICollection"></see> is synchronized (thread safe); otherwise, false.</returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapter.SyncRoot"> - <summary> - Gets an object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection"></see>. - </summary> - <value></value> - <returns>An object that can be used to synchronize access to the <see cref="T:System.Collections.ICollection"></see>.</returns> - </member> - <member name="F:Castle.Core.Internal.InternalsVisible.ToCastleCore"> - <summary> - Constant to use when making assembly internals visible to Castle.Core - <c>[assembly: InternalsVisibleTo(CoreInternalsVisible.ToCastleCore)]</c> - </summary> - </member> - <member name="F:Castle.Core.Internal.InternalsVisible.ToDynamicProxyGenAssembly2"> - <summary> - Constant to use when making assembly internals visible to proxy types generated by DynamicProxy. Required when proxying internal types. - <c>[assembly: InternalsVisibleTo(CoreInternalsVisible.ToDynamicProxyGenAssembly2)]</c> - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.AbstractDictionaryAdapterVisitor"> - <summary> - Abstract implementation of <see cref="T:Castle.Components.DictionaryAdapter.IDictionaryAdapterVisitor"/>. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryAdapterVisitor"> - <summary> - Conract for traversing a <see cref="T:Castle.Components.DictionaryAdapter.IDictionaryAdapter"/>. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.ComponentAttribute"> - <summary> - Identifies a property should be represented as a nested component. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder"> - <summary> - Defines the contract for building typed dictionary keys. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder.GetKey(Castle.Components.DictionaryAdapter.IDictionaryAdapter,System.String,Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <summary> - Builds the specified key. - </summary> - <param name="dictionaryAdapter">The dictionary adapter.</param> - <param name="key">The current key.</param> - <param name="property">The property.</param> - <returns>The updated key</returns> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter"> - <summary> - Defines the contract for retrieving dictionary values. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter.GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter,System.String,System.Object,Castle.Components.DictionaryAdapter.PropertyDescriptor,System.Boolean)"> - <summary> - Gets the effective dictionary value. - </summary> - <param name="dictionaryAdapter">The dictionary adapter.</param> - <param name="key">The key.</param> - <param name="storedValue">The stored value.</param> - <param name="property">The property.</param> - <param name="ifExists">true if return only existing.</param> - <returns>The effective property value.</returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.ComponentAttribute.NoPrefix"> - <summary> - Applies no prefix. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.ComponentAttribute.Prefix"> - <summary> - Gets or sets the prefix. - </summary> - <value>The prefix.</value> - </member> - <member name="T:Castle.Components.DictionaryAdapter.DictionaryAdapterAttribute"> - <summary> - Identifies the dictionary adapter types. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.FetchAttribute"> - <summary> - Identifies an interface or property to be pre-feteched. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.FetchAttribute.#ctor"> - <summary> - Instructs fetching to occur. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.FetchAttribute.#ctor(System.Boolean)"> - <summary> - Instructs fetching according to <paramref name="fetch"/> - </summary> - <param name="fetch"></param> - </member> - <member name="P:Castle.Components.DictionaryAdapter.FetchAttribute.Fetch"> - <summary> - Gets whether or not fetching should occur. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.GroupAttribute"> - <summary> - Assigns a property to a group. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.GroupAttribute.#ctor(System.Object)"> - <summary> - Constructs a group assignment. - </summary> - <param name="group">The group name.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.GroupAttribute.#ctor(System.Object[])"> - <summary> - Constructs a group assignment. - </summary> - <param name="group">The group name.</param> - </member> - <member name="P:Castle.Components.DictionaryAdapter.GroupAttribute.Group"> - <summary> - Gets the group the property is assigned to. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.KeyAttribute"> - <summary> - Assigns a specific dictionary key. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.KeyAttribute.#ctor(System.String)"> - <summary> - Initializes a new instance of the <see cref="T:Castle.Components.DictionaryAdapter.KeyAttribute"/> class. - </summary> - <param name="key">The key.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.KeyAttribute.#ctor(System.String[])"> - <summary> - Initializes a new instance of the <see cref="T:Castle.Components.DictionaryAdapter.KeyAttribute"/> class. - </summary> - <param name="keys">The compound key.</param> - </member> - <member name="T:Castle.Components.DictionaryAdapter.KeyPrefixAttribute"> - <summary> - Assigns a prefix to the keyed properties of an interface. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.KeyPrefixAttribute.#ctor"> - <summary> - Initializes a default instance of the <see cref="T:Castle.Components.DictionaryAdapter.KeyPrefixAttribute"/> class. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.KeyPrefixAttribute.#ctor(System.String)"> - <summary> - Initializes a new instance of the <see cref="T:Castle.Components.DictionaryAdapter.KeyPrefixAttribute"/> class. - </summary> - <param name="keyPrefix">The prefix for the keyed properties of the interface.</param> - </member> - <member name="P:Castle.Components.DictionaryAdapter.KeyPrefixAttribute.KeyPrefix"> - <summary> - Gets the prefix key added to the properties of the interface. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.KeySubstitutionAttribute"> - <summary> - Substitutes part of key with another string. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.KeySubstitutionAttribute.#ctor(System.String,System.String)"> - <summary> - Initializes a new instance of the <see cref="T:Castle.Components.DictionaryAdapter.KeySubstitutionAttribute"/> class. - </summary> - <param name="oldValue">The old value.</param> - <param name="newValue">The new value.</param> - </member> - <member name="T:Castle.Components.DictionaryAdapter.MultiLevelEditAttribute"> - <summary> - Requests support for multi-level editing. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryInitializer"> - <summary> - Contract for dictionary initialization. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryInitializer.Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapter,System.Object[])"> - <summary> - Performs any initialization of the <see cref="T:Castle.Components.DictionaryAdapter.IDictionaryAdapter"/> - </summary> - <param name="dictionaryAdapter">The dictionary adapter.</param> - <param name="behaviors">The dictionary behaviors.</param> - </member> - <member name="T:Castle.Components.DictionaryAdapter.NewGuidAttribute"> - <summary> - Generates a new GUID on demand. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.OnDemandAttribute"> - <summary> - Support for on-demand value resolution. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.PropagateNotificationsAttribute"> - <summary> - Suppress property change notifications. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.StringFormatAttribute"> - <summary> - Provides simple string formatting from existing properties. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.StringFormatAttribute.Format"> - <summary> - Gets the string format. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.StringFormatAttribute.Properties"> - <summary> - Gets the format properties. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.StringListAttribute"> - <summary> - Identifies a property should be represented as a delimited string value. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.StringListAttribute.Separator"> - <summary> - Gets the separator. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.StringValuesAttribute"> - <summary> - Converts all properties to strings. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.StringValuesAttribute.Format"> - <summary> - Gets or sets the format. - </summary> - <value>The format.</value> - </member> - <member name="T:Castle.Components.DictionaryAdapter.SuppressNotificationsAttribute"> - <summary> - Suppress property change notifications. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IPropertyDescriptorInitializer"> - <summary> - Contract for property descriptor initialization. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IPropertyDescriptorInitializer.Initialize(Castle.Components.DictionaryAdapter.PropertyDescriptor,System.Object[])"> - <summary> - Performs any initialization of the <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="propertyDescriptor">The property descriptor.</param> - <param name="behaviors">The property behaviors.</param> - </member> - <member name="T:Castle.Components.DictionaryAdapter.TypeKeyPrefixAttribute"> - <summary> - Assigns a prefix to the keyed properties using the interface name. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.DefaultPropertyGetter"> - <summary> - Manages conversion between property values. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DefaultPropertyGetter.#ctor(System.ComponentModel.TypeConverter)"> - <summary> - Initializes a new instance of the <see cref="T:Castle.Components.DictionaryAdapter.DefaultPropertyGetter"/> class. - </summary> - <param name="converter">The converter.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DefaultPropertyGetter.GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter,System.String,System.Object,Castle.Components.DictionaryAdapter.PropertyDescriptor,System.Boolean)"> - <summary> - Gets the effective dictionary value. - </summary> - <param name="dictionaryAdapter">The dictionary adapter.</param> - <param name="key">The key.</param> - <param name="storedValue">The stored value.</param> - <param name="property">The property.</param> - <param name="ifExists">true if return only existing.</param> - <returns>The effective property value.</returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.DefaultPropertyGetter.ExecutionOrder"> - <summary> - - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryCreate"> - <summary> - Contract for creating additional Dictionary adapters. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryAdapter"> - <summary> - Contract for manipulating the Dictionary adapter. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryEdit"> - <summary> - Contract for editing the Dictionary adapter. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryNotify"> - <summary> - Contract for managing Dictionary adapter notifications. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryValidate"> - <summary> - Contract for validating Dictionary adapter. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory"> - <summary> - Uses Reflection.Emit to expose the properties of a dictionary - through a dynamic implementation of a typed interface. - </summary> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory"> - <summary> - Defines the contract for building typed dictionary adapters. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory.GetAdapter``1(System.Collections.IDictionary)"> - <summary> - Gets a typed adapter bound to the <see cref="T:System.Collections.IDictionary"/>. - </summary> - <typeparam name="T">The typed interface.</typeparam> - <param name="dictionary">The underlying source of properties.</param> - <returns>An implementation of the typed interface bound to the dictionary.</returns> - <remarks> - The type represented by T must be an interface with properties. - </remarks> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory.GetAdapter(System.Type,System.Collections.IDictionary)"> - <summary> - Gets a typed adapter bound to the <see cref="T:System.Collections.IDictionary"/>. - </summary> - <param name="type">The typed interface.</param> - <param name="dictionary">The underlying source of properties.</param> - <returns>An implementation of the typed interface bound to the dictionary.</returns> - <remarks> - The type represented by T must be an interface with properties. - </remarks> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory.GetAdapter(System.Type,System.Collections.IDictionary,Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <summary> - Gets a typed adapter bound to the <see cref="T:System.Collections.IDictionary"/>. - </summary> - <param name="type">The typed interface.</param> - <param name="dictionary">The underlying source of properties.</param> - <param name="descriptor">The property descriptor.</param> - <returns>An implementation of the typed interface bound to the dictionary.</returns> - <remarks> - The type represented by T must be an interface with properties. - </remarks> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory.GetAdapter``1(System.Collections.Specialized.NameValueCollection)"> - <summary> - Gets a typed adapter bound to the <see cref="T:System.Collections.Specialized.NameValueCollection"/>. - </summary> - <typeparam name="T">The typed interface.</typeparam> - <param name="nameValues">The underlying source of properties.</param> - <returns>An implementation of the typed interface bound to the namedValues.</returns> - <remarks> - The type represented by T must be an interface with properties. - </remarks> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory.GetAdapter(System.Type,System.Collections.Specialized.NameValueCollection)"> - <summary> - Gets a typed adapter bound to the <see cref="T:System.Collections.Specialized.NameValueCollection"/>. - </summary> - <param name="type">The typed interface.</param> - <param name="nameValues">The underlying source of properties.</param> - <returns>An implementation of the typed interface bound to the namedValues.</returns> - <remarks> - The type represented by T must be an interface with properties. - </remarks> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory.GetAdapter``1(System.Xml.XPath.IXPathNavigable)"> - <summary> - Gets a typed adapter bound to the <see cref="T:System.Xml.XPath.IXPathNavigable"/>. - </summary> - <typeparam name="T">The typed interface.</typeparam> - <param name="xpathNavigable">The underlying source of properties.</param> - <returns>An implementation of the typed interface bound to the xpath navigable.</returns> - <remarks> - The type represented by T must be an interface with properties. - </remarks> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory.GetAdapter(System.Type,System.Xml.XPath.IXPathNavigable)"> - <summary> - Gets a typed adapter bound to the <see cref="T:System.Xml.XPath.IXPathNavigable"/>. - </summary> - <param name="type">The typed interface.</param> - <param name="xpathNavigable">The underlying source of properties.</param> - <returns>An implementation of the typed interface bound to the xpath navigable.</returns> - <remarks> - The type represented by T must be an interface with properties. - </remarks> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory.GetAdapterMeta(System.Type)"> - <summary> - Gets the <see cref="T:Castle.Components.DictionaryAdapter.DictionaryAdapterMeta"/> associated with the type. - </summary> - <param name="type">The typed interface.</param> - <returns>The adapter meta-data.</returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory.GetAdapterMeta(System.Type,Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <summary> - Gets the <see cref="T:Castle.Components.DictionaryAdapter.DictionaryAdapterMeta"/> associated with the type. - </summary> - <param name="type">The typed interface.</param> - <param name="descriptor">The property descriptor.</param> - <returns>The adapter meta-data.</returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory.GetAdapter``1(System.Collections.IDictionary)"> - <inheritdoc /> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory.GetAdapter(System.Type,System.Collections.IDictionary)"> - <inheritdoc /> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory.GetAdapter(System.Type,System.Collections.IDictionary,Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <inheritdoc /> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory.GetAdapter``2(System.Collections.Generic.IDictionary{System.String,``1})"> - <inheritdoc /> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory.GetAdapter``1(System.Type,System.Collections.Generic.IDictionary{System.String,``0})"> - <inheritdoc /> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory.GetAdapter``1(System.Collections.Specialized.NameValueCollection)"> - <inheritdoc /> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory.GetAdapter(System.Type,System.Collections.Specialized.NameValueCollection)"> - <inheritdoc /> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory.GetAdapter``1(System.Xml.XPath.IXPathNavigable)"> - <inheritdoc /> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory.GetAdapter(System.Type,System.Xml.XPath.IXPathNavigable)"> - <inheritdoc /> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory.GetAdapterMeta(System.Type)"> - <inheritdoc /> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryAdapterFactory.GetAdapterMeta(System.Type,Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <inheritdoc /> - </member> - <member name="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"> - <summary> - Describes a dictionary property. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.#ctor"> - <summary> - Initializes an empty <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> class. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.#ctor(System.Reflection.PropertyInfo,System.Object[])"> - <summary> - Initializes a new instance of the <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> class. - </summary> - <param name="property">The property.</param> - <param name="behaviors">The property behaviors.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.#ctor(Castle.Components.DictionaryAdapter.PropertyDescriptor,System.Boolean)"> - <summary> - Copies an existinginstance of the <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> class. - </summary> - <param name="source"></param> - <param name="copyBehaviors"></param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.GetKey(Castle.Components.DictionaryAdapter.IDictionaryAdapter,System.String,Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <summary> - Gets the key. - </summary> - <param name="dictionaryAdapter">The dictionary adapter.</param> - <param name="key">The key.</param> - <param name="descriptor">The descriptor.</param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.AddKeyBuilder(Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder[])"> - <summary> - Adds the key builder. - </summary> - <param name="builders">The builder.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.AddKeyBuilders(System.Collections.Generic.IEnumerable{Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder})"> - <summary> - Adds the key builders. - </summary> - <param name="builders">The builders.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.CopyKeyBuilders(Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <summary> - Copies the key builders to the other <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="other"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.CopyKeyBuilders(Castle.Components.DictionaryAdapter.PropertyDescriptor,System.Func{Castle.Components.DictionaryAdapter.IDictionaryKeyBuilder,System.Boolean})"> - <summary> - Copies the selected key builders to the other <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="other"></param> - <param name="selector"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.GetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter,System.String,System.Object,Castle.Components.DictionaryAdapter.PropertyDescriptor,System.Boolean)"> - <summary> - Gets the property value. - </summary> - <param name="dictionaryAdapter">The dictionary adapter.</param> - <param name="key">The key.</param> - <param name="storedValue">The stored value.</param> - <param name="descriptor">The descriptor.</param> - <param name="ifExists">true if return only existing.</param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.AddGetter(Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter[])"> - <summary> - Adds the dictionary getter. - </summary> - <param name="getters">The getter.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.AddGetters(System.Collections.Generic.IEnumerable{Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter})"> - <summary> - Adds the dictionary getters. - </summary> - <param name="gets">The getters.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.CopyGetters(Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <summary> - Copies the property getters to the other <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="other"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.CopyGetters(Castle.Components.DictionaryAdapter.PropertyDescriptor,System.Func{Castle.Components.DictionaryAdapter.IDictionaryPropertyGetter,System.Boolean})"> - <summary> - Copies the selected property getters to the other <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="other"></param> - <param name="selector"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.SetPropertyValue(Castle.Components.DictionaryAdapter.IDictionaryAdapter,System.String,System.Object@,Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <summary> - Sets the property value. - </summary> - <param name="dictionaryAdapter">The dictionary adapter.</param> - <param name="key">The key.</param> - <param name="value">The value.</param> - <param name="descriptor">The descriptor.</param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.AddSetter(Castle.Components.DictionaryAdapter.IDictionaryPropertySetter[])"> - <summary> - Adds the dictionary setter. - </summary> - <param name="setters">The setter.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.AddSetters(System.Collections.Generic.IEnumerable{Castle.Components.DictionaryAdapter.IDictionaryPropertySetter})"> - <summary> - Adds the dictionary setters. - </summary> - <param name="sets">The setters.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.CopySetters(Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <summary> - Copies the property setters to the other <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="other"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.CopySetters(Castle.Components.DictionaryAdapter.PropertyDescriptor,System.Func{Castle.Components.DictionaryAdapter.IDictionaryPropertySetter,System.Boolean})"> - <summary> - Copies the selected property setters to the other <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="other"></param> - <param name="selector"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.AddBehavior(Castle.Components.DictionaryAdapter.IDictionaryBehavior[])"> - <summary> - Adds the behaviors. - </summary> - <param name="behaviors"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.AddBehaviors(System.Collections.Generic.IEnumerable{Castle.Components.DictionaryAdapter.IDictionaryBehavior})"> - <summary> - Adds the behaviors. - </summary> - <param name="behaviors"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.AddBehaviors(Castle.Components.DictionaryAdapter.IDictionaryBehaviorBuilder[])"> - <summary> - Adds the behaviors from the builders. - </summary> - <param name="builders"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.CopyBehaviors(Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <summary> - Copies the behaviors to the other <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="other"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.PropertyDescriptor.CopyBehaviors(Castle.Components.DictionaryAdapter.PropertyDescriptor,System.Func{Castle.Components.DictionaryAdapter.IDictionaryBehavior,System.Boolean})"> - <summary> - Copies the behaviors to the other <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="other"></param> - <param name="selector"></param> - <returns></returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.ExecutionOrder"> - <summary> - - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.PropertyName"> - <summary> - Gets the property name. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.PropertyType"> - <summary> - Gets the property type. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.Property"> - <summary> - Gets the property. - </summary> - <value>The property.</value> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.IsDynamicProperty"> - <summary> - Returns true if the property is dynamic. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.State"> - <summary> - Gets additional state. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.Fetch"> - <summary> - Determines if property should be fetched. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.SuppressNotifications"> - <summary> - Determines if notifications should occur. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.Behaviors"> - <summary> - Gets the property behaviors. - </summary> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.TypeConverter"> - <summary> - Gets the type converter. - </summary> - <value>The type converter.</value> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.KeyBuilders"> - <summary> - Gets the key builders. - </summary> - <value>The key builders.</value> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.Setters"> - <summary> - Gets the setter. - </summary> - <value>The setter.</value> - </member> - <member name="P:Castle.Components.DictionaryAdapter.PropertyDescriptor.Getters"> - <summary> - Gets the getter. - </summary> - <value>The getter.</value> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryDescriptor.AddInitializer(Castle.Components.DictionaryAdapter.IDictionaryInitializer[])"> - <summary> - Adds the dictionary initializers. - </summary> - <param name="inits">The initializers.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryDescriptor.AddInitializers(System.Collections.Generic.IEnumerable{Castle.Components.DictionaryAdapter.IDictionaryInitializer})"> - <summary> - Adds the dictionary initializers. - </summary> - <param name="inits">The initializers.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryDescriptor.CopyInitializers(Castle.Components.DictionaryAdapter.DictionaryDescriptor)"> - <summary> - Copies the initializers to the other <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="other"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryDescriptor.CopyInitializers(Castle.Components.DictionaryAdapter.DictionaryDescriptor,System.Func{Castle.Components.DictionaryAdapter.IDictionaryInitializer,System.Boolean})"> - <summary> - Copies the filtered initializers to the other <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="other"></param> - <param name="selector"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryDescriptor.AddMetaInitializer(Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer[])"> - <summary> - Adds the dictionary meta-data initializers. - </summary> - <param name="inits">The meta-data initializers.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryDescriptor.AddMetaInitializers(System.Collections.Generic.IEnumerable{Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer})"> - <summary> - Adds the dictionary meta-data initializers. - </summary> - <param name="inits">The meta-data initializers.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryDescriptor.CopyMetaInitializers(Castle.Components.DictionaryAdapter.DictionaryDescriptor)"> - <summary> - Copies the meta-initializers to the other <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="other"></param> - <returns></returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.DictionaryDescriptor.CopyMetaInitializers(Castle.Components.DictionaryAdapter.DictionaryDescriptor,System.Func{Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer,System.Boolean})"> - <summary> - Copies the filtered meta-initializers to the other <see cref="T:Castle.Components.DictionaryAdapter.PropertyDescriptor"/> - </summary> - <param name="other"></param> - <param name="selector"></param> - <returns></returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.DictionaryDescriptor.Initializers"> - <summary> - Gets the initializers. - </summary> - <value>The initializers.</value> - </member> - <member name="P:Castle.Components.DictionaryAdapter.DictionaryDescriptor.MetaInitializers"> - <summary> - Gets the meta-data initializers. - </summary> - <value>The meta-data initializers.</value> - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer"> - <summary> - Contract for dictionary meta-data initialization. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryMetaInitializer.Initialize(Castle.Components.DictionaryAdapter.IDictionaryAdapterFactory,Castle.Components.DictionaryAdapter.DictionaryAdapterMeta)"> - <summary> - Performs any initialization of the dictionary adapter meta-data. - </summary> - <param name="factory">The dictionary adapter factory.</param> - <param name="dictionaryMeta">The dictionary adapter meta.</param> - - </member> - <member name="T:Castle.Components.DictionaryAdapter.IDictionaryValidator"> - <summary> - Contract for dictionary validation. - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryValidator.IsValid(Castle.Components.DictionaryAdapter.IDictionaryAdapter)"> - <summary> - Determines if <see cref="T:Castle.Components.DictionaryAdapter.IDictionaryAdapter"/> is valid. - </summary> - <param name="dictionaryAdapter">The dictionary adapter.</param> - <returns>true if valid.</returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryValidator.Validate(Castle.Components.DictionaryAdapter.IDictionaryAdapter)"> - <summary> - Validates the <see cref="T:Castle.Components.DictionaryAdapter.IDictionaryAdapter"/>. - </summary> - <param name="dictionaryAdapter">The dictionary adapter.</param> - <returns>The error summary information.</returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryValidator.Validate(Castle.Components.DictionaryAdapter.IDictionaryAdapter,Castle.Components.DictionaryAdapter.PropertyDescriptor)"> - <summary> - Validates the <see cref="T:Castle.Components.DictionaryAdapter.IDictionaryAdapter"/> for a property. - </summary> - <param name="dictionaryAdapter">The dictionary adapter.</param> - <param name="property">The property to validate.</param> - <returns>The property summary information.</returns> - </member> - <member name="M:Castle.Components.DictionaryAdapter.IDictionaryValidator.Invalidate(Castle.Components.DictionaryAdapter.IDictionaryAdapter)"> - <summary> - Invalidates any results cached by the validator. - </summary> - <param name="dictionaryAdapter">The dictionary adapter.</param> - </member> - <member name="T:Castle.Components.DictionaryAdapter.NameValueCollectionAdapter"> - <summary> - - </summary> - </member> - <member name="M:Castle.Components.DictionaryAdapter.NameValueCollectionAdapter.#ctor(System.Collections.Specialized.NameValueCollection)"> - <summary> - Initializes a new instance of the <see cref="T:Castle.Components.DictionaryAdapter.NameValueCollectionAdapter"/> class. - </summary> - <param name="nameValues">The name values.</param> - </member> - <member name="M:Castle.Components.DictionaryAdapter.NameValueCollectionAdapter.Contains(System.Object)"> - <summary> - Determines whether the <see cref="T:System.Collections.IDictionary"></see> object contains an element with the specified key. - </summary> - <param name="key">The key to locate in the <see cref="T:System.Collections.IDictionary"></see> object.</param> - <returns> - true if the <see cref="T:System.Collections.IDictionary"></see> contains an element with the key; otherwise, false. - </returns> - <exception cref="T:System.ArgumentNullException">key is null. </exception> - </member> - <member name="M:Castle.Components.DictionaryAdapter.NameValueCollectionAdapter.Adapt(System.Collections.Specialized.NameValueCollection)"> - <summary> - Adapts the specified name values. - </summary> - <param name="nameValues">The name values.</param> - <returns></returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.NameValueCollectionAdapter.IsReadOnly"> - <summary> - Gets a value indicating whether the <see cref="T:System.Collections.IDictionary"></see> object is read-only. - </summary> - <value></value> - <returns>true if the <see cref="T:System.Collections.IDictionary"></see> object is read-only; otherwise, false.</returns> - </member> - <member name="P:Castle.Components.DictionaryAdapter.NameValueCollectionAdapter.Item(System.Object)"> - <summary> - Gets or sets the <see cref="T:System.Object"/> with the specified key. - </summary> - <value></value> - </member> - <member name="T:Castle.Core.Internal.AttributesUtil"> - <summary> - Helper class for retrieving attributes. - </summary> - </member> - <member name="M:Castle.Core.Internal.AttributesUtil.GetAttribute``1(System.Reflection.ICustomAttributeProvider)"> - <summary> - Gets the attribute. - </summary> - <param name = "member">The member.</param> - <returns>The member attribute.</returns> - </member> - <member name="M:Castle.Core.Internal.AttributesUtil.GetAttributes``1(System.Reflection.ICustomAttributeProvider)"> - <summary> - Gets the attributes. Does not consider inherited attributes! - </summary> - <param name = "member">The member.</param> - <returns>The member attributes.</returns> - </member> - <member name="M:Castle.Core.Internal.AttributesUtil.GetTypeAttribute``1(System.Type)"> - <summary> - Gets the type attribute. - </summary> - <param name = "type">The type.</param> - <returns>The type attribute.</returns> - </member> - <member name="M:Castle.Core.Internal.AttributesUtil.GetTypeAttributes``1(System.Type)"> - <summary> - Gets the type attributes. - </summary> - <param name = "type">The type.</param> - <returns>The type attributes.</returns> - </member> - <member name="M:Castle.Core.Internal.AttributesUtil.GetTypeConverter(System.Reflection.MemberInfo)"> - <summary> - Gets the typ... [truncated message content] |
From: <fab...@us...> - 2011-03-20 21:21:50
|
Revision: 5489 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5489&view=rev Author: fabiomaulo Date: 2011-03-20 21:21:43 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Removed unneeded files Removed Paths: ------------- trunk/nhibernate/lib/mono/1.0/Castle.DynamicProxy.dll trunk/nhibernate/lib/mono/1.0/Memcached.ClientLibrary.dll trunk/nhibernate/lib/mono/1.0/Memcached.ClientLibrary.license.txt trunk/nhibernate/lib/mono/1.0/nmock.dll Deleted: trunk/nhibernate/lib/mono/1.0/Castle.DynamicProxy.dll =================================================================== (Binary files differ) Deleted: trunk/nhibernate/lib/mono/1.0/Memcached.ClientLibrary.dll =================================================================== (Binary files differ) Deleted: trunk/nhibernate/lib/mono/1.0/Memcached.ClientLibrary.license.txt =================================================================== --- trunk/nhibernate/lib/mono/1.0/Memcached.ClientLibrary.license.txt 2011-03-20 21:07:31 UTC (rev 5488) +++ trunk/nhibernate/lib/mono/1.0/Memcached.ClientLibrary.license.txt 2011-03-20 21:21:43 UTC (rev 5489) @@ -1,504 +0,0 @@ - GNU LESSER GENERAL PUBLIC LICENSE - Version 2.1, February 1999 - - Copyright (C) 1991, 1999 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -Licenses are intended to guarantee your freedom to share and change -free software--to make sure the software is free for all its users. - - This license, the Lesser General Public License, applies to some -specially designated software packages--typically libraries--of the -Free Software Foundation and other authors who decide to use it. You -can use it too, but we suggest you first think carefully about whether -this license or the ordinary General Public License is the better -strategy to use in any particular case, based on the explanations below. - - When we speak of free software, we are referring to freedom of use, -not price. Our General Public Licenses are designed to make sure that -you have the freedom to distribute copies of free software (and charge -for this service if you wish); that you receive source code or can get -it if you want it; that you can change the software and use pieces of -it in new free programs; and that you are informed that you can do -these things. - - To protect your rights, we need to make restrictions that forbid -distributors to deny you these rights or to ask you to surrender these -rights. These restrictions translate to certain responsibilities for -you if you distribute copies of the library or if you modify it. - - For example, if you distribute copies of the library, whether gratis -or for a fee, you must give the recipients all the rights that we gave -you. You must make sure that they, too, receive or can get the source -code. If you link other code with the library, you must provide -complete object files to the recipients, so that they can relink them -with the library after making changes to the library and recompiling -it. And you must show them these terms so they know their rights. - - We protect your rights with a two-step method: (1) we copyright the -library, and (2) we offer you this license, which gives you legal -permission to copy, distribute and/or modify the library. - - To protect each distributor, we want to make it very clear that -there is no warranty for the free library. Also, if the library is -modified by someone else and passed on, the recipients should know -that what they have is not the original version, so that the original -author's reputation will not be affected by problems that might be -introduced by others. - - Finally, software patents pose a constant threat to the existence of -any free program. We wish to make sure that a company cannot -effectively restrict the users of a free program by obtaining a -restrictive license from a patent holder. Therefore, we insist that -any patent license obtained for a version of the library must be -consistent with the full freedom of use specified in this license. - - Most GNU software, including some libraries, is covered by the -ordinary GNU General Public License. This license, the GNU Lesser -General Public License, applies to certain designated libraries, and -is quite different from the ordinary General Public License. We use -this license for certain libraries in order to permit linking those -libraries into non-free programs. - - When a program is linked with a library, whether statically or using -a shared library, the combination of the two is legally speaking a -combined work, a derivative of the original library. The ordinary -General Public License therefore permits such linking only if the -entire combination fits its criteria of freedom. The Lesser General -Public License permits more lax criteria for linking other code with -the library. - - We call this license the "Lesser" General Public License because it -does Less to protect the user's freedom than the ordinary General -Public License. It also provides other free software developers Less -of an advantage over competing non-free programs. These disadvantages -are the reason we use the ordinary General Public License for many -libraries. However, the Lesser license provides advantages in certain -special circumstances. - - For example, on rare occasions, there may be a special need to -encourage the widest possible use of a certain library, so that it becomes -a de-facto standard. To achieve this, non-free programs must be -allowed to use the library. A more frequent case is that a free -library does the same job as widely used non-free libraries. In this -case, there is little to gain by limiting the free library to free -software only, so we use the Lesser General Public License. - - In other cases, permission to use a particular library in non-free -programs enables a greater number of people to use a large body of -free software. For example, permission to use the GNU C Library in -non-free programs enables many more people to use the whole GNU -operating system, as well as its variant, the GNU/Linux operating -system. - - Although the Lesser General Public License is Less protective of the -users' freedom, it does ensure that the user of a program that is -linked with the Library has the freedom and the wherewithal to run -that program using a modified version of the Library. - - The precise terms and conditions for copying, distribution and -modification follow. Pay close attention to the difference between a -"work based on the library" and a "work that uses the library". The -former contains code derived from the library, whereas the latter must -be combined with the library in order to run. - - GNU LESSER GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License Agreement applies to any software library or other -program which contains a notice placed by the copyright holder or -other authorized party saying it may be distributed under the terms of -this Lesser General Public License (also called "this License"). -Each licensee is addressed as "you". - - A "library" means a collection of software functions and/or data -prepared so as to be conveniently linked with application programs -(which use some of those functions and data) to form executables. - - The "Library", below, refers to any such software library or work -which has been distributed under these terms. A "work based on the -Library" means either the Library or any derivative work under -copyright law: that is to say, a work containing the Library or a -portion of it, either verbatim or with modifications and/or translated -straightforwardly into another language. (Hereinafter, translation is -included without limitation in the term "modification".) - - "Source code" for a work means the preferred form of the work for -making modifications to it. For a library, complete source code means -all the source code for all modules it contains, plus any associated -interface definition files, plus the scripts used to control compilation -and installation of the library. - - Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running a program using the Library is not restricted, and output from -such a program is covered only if its contents constitute a work based -on the Library (independent of the use of the Library in a tool for -writing it). Whether that is true depends on what the Library does -and what the program that uses the Library does. - - 1. You may copy and distribute verbatim copies of the Library's -complete source code as you receive it, in any medium, provided that -you conspicuously and appropriately publish on each copy an -appropriate copyright notice and disclaimer of warranty; keep intact -all the notices that refer to this License and to the absence of any -warranty; and distribute a copy of this License along with the -Library. - - You may charge a fee for the physical act of transferring a copy, -and you may at your option offer warranty protection in exchange for a -fee. - - 2. You may modify your copy or copies of the Library or any portion -of it, thus forming a work based on the Library, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - - b) You must cause the files modified to carry prominent notices - stating that you changed the files and the date of any change. - - c) You must cause the whole of the work to be licensed at no - charge to all third parties under the terms of this License. - - d) If a facility in the modified Library refers to a function or a - table of data to be supplied by an application program that uses - the facility, other than as an argument passed when the facility - is invoked, then you must make a good faith effort to ensure that, - in the event an application does not supply such function or - table, the facility still operates, and performs whatever part of - its purpose remains meaningful. - - (For example, a function in a library to compute square roots has - a purpose that is entirely well-defined independent of the - application. Therefore, Subsection 2d requires that any - application-supplied function or table used by this function must - be optional: if the application does not supply it, the square - root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Library, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Library, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote -it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library -with the Library (or with a work based on the Library) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may opt to apply the terms of the ordinary GNU General Public -License instead of this License to a given copy of the Library. To do -this, you must alter all the notices that refer to this License, so -that they refer to the ordinary GNU General Public License, version 2, -instead of to this License. (If a newer version than version 2 of the -ordinary GNU General Public License has appeared, then you can specify -that version instead if you wish.) Do not make any other change in -these notices. - - Once this change is made in a given copy, it is irreversible for -that copy, so the ordinary GNU General Public License applies to all -subsequent copies and derivative works made from that copy. - - This option is useful when you wish to copy part of the code of -the Library into a program that is not a library. - - 4. You may copy and distribute the Library (or a portion or -derivative of it, under Section 2) in object code or executable form -under the terms of Sections 1 and 2 above provided that you accompany -it with the complete corresponding machine-readable source code, which -must be distributed under the terms of Sections 1 and 2 above on a -medium customarily used for software interchange. - - If distribution of object code is made by offering access to copy -from a designated place, then offering equivalent access to copy the -source code from the same place satisfies the requirement to -distribute the source code, even though third parties are not -compelled to copy the source along with the object code. - - 5. A program that contains no derivative of any portion of the -Library, but is designed to work with the Library by being compiled or -linked with it, is called a "work that uses the Library". Such a -work, in isolation, is not a derivative work of the Library, and -therefore falls outside the scope of this License. - - However, linking a "work that uses the Library" with the Library -creates an executable that is a derivative of the Library (because it -contains portions of the Library), rather than a "work that uses the -library". The executable is therefore covered by this License. -Section 6 states terms for distribution of such executables. - - When a "work that uses the Library" uses material from a header file -that is part of the Library, the object code for the work may be a -derivative work of the Library even though the source code is not. -Whether this is true is especially significant if the work can be -linked without the Library, or if the work is itself a library. The -threshold for this to be true is not precisely defined by law. - - If such an object file uses only numerical parameters, data -structure layouts and accessors, and small macros and small inline -functions (ten lines or less in length), then the use of the object -file is unrestricted, regardless of whether it is legally a derivative -work. (Executables containing this object code plus portions of the -Library will still fall under Section 6.) - - Otherwise, if the work is a derivative of the Library, you may -distribute the object code for the work under the terms of Section 6. -Any executables containing that work also fall under Section 6, -whether or not they are linked directly with the Library itself. - - 6. As an exception to the Sections above, you may also combine or -link a "work that uses the Library" with the Library to produce a -work containing portions of the Library, and distribute that work -under terms of your choice, provided that the terms permit -modification of the work for the customer's own use and reverse -engineering for debugging such modifications. - - You must give prominent notice with each copy of the work that the -Library is used in it and that the Library and its use are covered by -this License. You must supply a copy of this License. If the work -during execution displays copyright notices, you must include the -copyright notice for the Library among them, as well as a reference -directing the user to the copy of this License. Also, you must do one -of these things: - - a) Accompany the work with the complete corresponding - machine-readable source code for the Library including whatever - changes were used in the work (which must be distributed under - Sections 1 and 2 above); and, if the work is an executable linked - with the Library, with the complete machine-readable "work that - uses the Library", as object code and/or source code, so that the - user can modify the Library and then relink to produce a modified - executable containing the modified Library. (It is understood - that the user who changes the contents of definitions files in the - Library will not necessarily be able to recompile the application - to use the modified definitions.) - - b) Use a suitable shared library mechanism for linking with the - Library. A suitable mechanism is one that (1) uses at run time a - copy of the library already present on the user's computer system, - rather than copying library functions into the executable, and (2) - will operate properly with a modified version of the library, if - the user installs one, as long as the modified version is - interface-compatible with the version that the work was made with. - - c) Accompany the work with a written offer, valid for at - least three years, to give the same user the materials - specified in Subsection 6a, above, for a charge no more - than the cost of performing this distribution. - - d) If distribution of the work is made by offering access to copy - from a designated place, offer equivalent access to copy the above - specified materials from the same place. - - e) Verify that the user has already received a copy of these - materials or that you have already sent this user a copy. - - For an executable, the required form of the "work that uses the -Library" must include any data and utility programs needed for -reproducing the executable from it. However, as a special exception, -the materials to be distributed need not include anything that is -normally distributed (in either source or binary form) with the major -components (compiler, kernel, and so on) of the operating system on -which the executable runs, unless that component itself accompanies -the executable. - - It may happen that this requirement contradicts the license -restrictions of other proprietary libraries that do not normally -accompany the operating system. Such a contradiction means you cannot -use both them and the Library together in an executable that you -distribute. - - 7. You may place library facilities that are a work based on the -Library side-by-side in a single library together with other library -facilities not covered by this License, and distribute such a combined -library, provided that the separate distribution of the work based on -the Library and of the other library facilities is otherwise -permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work - based on the Library, uncombined with any other library - facilities. This must be distributed under the terms of the - Sections above. - - b) Give prominent notice with the combined library of the fact - that part of it is a work based on the Library, and explaining - where to find the accompanying uncombined form of the same work. - - 8. You may not copy, modify, sublicense, link with, or distribute -the Library except as expressly provided under this License. Any -attempt otherwise to copy, modify, sublicense, link with, or -distribute the Library is void, and will automatically terminate your -rights under this License. However, parties who have received copies, -or rights, from you under this License will not have their licenses -terminated so long as such parties remain in full compliance. - - 9. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Library or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Library (or any work based on the -Library), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Library or works based on it. - - 10. Each time you redistribute the Library (or any work based on the -Library), the recipient automatically receives a license from the -original licensor to copy, distribute, link with or modify the Library -subject to these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties with -this License. - - 11. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Library at all. For example, if a patent -license would not permit royalty-free redistribution of the Library by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any -particular circumstance, the balance of the section is intended to apply, -and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 12. If the distribution and/or use of the Library is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Library under this License may add -an explicit geographical distribution limitation excluding those countries, -so that distribution is permitted only in or among countries not thus -excluded. In such case, this License incorporates the limitation as if -written in the body of this License. - - 13. The Free Software Foundation may publish revised and/or new -versions of the Lesser General Public License from time to time. -Such new versions will be similar in spirit to the present version, -but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library -specifies a version number of this License which applies to it and -"any later version", you have the option of following the terms and -conditions either of that version or of any later version published by -the Free Software Foundation. If the Library does not specify a -license version number, you may choose any version ever published by -the Free Software Foundation. - - 14. If you wish to incorporate parts of the Library into other free -programs whose distribution conditions are incompatible with these, -write to the author to ask for permission. For software which is -copyrighted by the Free Software Foundation, write to the Free -Software Foundation; we sometimes make exceptions for this. Our -decision will be guided by the two goals of preserving the free status -of all derivatives of our free software and of promoting the sharing -and reuse of software generally. - - NO WARRANTY - - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH -DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - <one line to give the library's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - <signature of Ty Coon>, 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! - - Deleted: trunk/nhibernate/lib/mono/1.0/nmock.dll =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 21:07:37
|
Revision: 5488 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5488&view=rev Author: fabiomaulo Date: 2011-03-20 21:07:31 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Removed externals bytecode providers Removed Paths: ------------- trunk/nhibernate/src/NHibernate.ByteCode.Castle/ trunk/nhibernate/src/NHibernate.ByteCode.Castle.Tests/ trunk/nhibernate/src/NHibernate.ByteCode.LinFu/ trunk/nhibernate/src/NHibernate.ByteCode.LinFu.Tests/ trunk/nhibernate/src/NHibernate.ByteCode.Spring/ trunk/nhibernate/src/NHibernate.ByteCode.Spring.Tests/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 20:53:47
|
Revision: 5487 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5487&view=rev Author: fabiomaulo Date: 2011-03-20 20:53:41 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Removed bytecodes projects from Everything solution Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Everything.sln Modified: trunk/nhibernate/src/NHibernate.Everything.sln =================================================================== --- trunk/nhibernate/src/NHibernate.Everything.sln 2011-03-20 20:52:26 UTC (rev 5486) +++ trunk/nhibernate/src/NHibernate.Everything.sln 2011-03-20 20:53:41 UTC (rev 5487) @@ -61,8 +61,6 @@ {B4F97281-0DBD-4835-9ED8-7DFB966E87FF} = {B4F97281-0DBD-4835-9ED8-7DFB966E87FF} EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ByteCode providers", "ByteCode providers", "{D2E4E87F-2531-4C7A-BBE9-FE8BFEDECECE}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate", "NHibernate\NHibernate.csproj", "{5909BFE7-93CF-4E5F-BE22-6293368AF01D}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.DomainModel", "NHibernate.DomainModel\NHibernate.DomainModel.csproj", "{5C649B55-1B3F-4C38-9998-1B043E94A244}" @@ -76,7 +74,7 @@ Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "NHibernate.Example.Web", "NHibernate.Example.Web\", "{C5D6EE68-1760-4F97-AD31-42343593D8C1}" ProjectSection(WebsiteProperties) = preProject TargetFrameworkMoniker = ".NETFramework,Version%3Dv3.5" - ProjectReferences = "{5909BFE7-93CF-4E5F-BE22-6293368AF01D}|NHibernate.dll;{8289D6AD-9714-42D3-A94D-D4D9814D1281}|NHibernate.ByteCode.LinFu.dll;" + ProjectReferences = "{5909BFE7-93CF-4E5F-BE22-6293368AF01D}|NHibernate.dll;" Debug.AspNetCompiler.VirtualPath = "/NHibernate.Example.Web" Debug.AspNetCompiler.PhysicalPath = "NHibernate.Example.Web\" Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\NHibernate.Example.Web\" @@ -97,18 +95,6 @@ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.Tool.HbmXsd", "NHibernate.Tool.HbmXsd\NHibernate.Tool.HbmXsd.csproj", "{446E148D-A9D5-4D7D-A706-BEDD45B2BC7D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.ByteCode.Castle", "NHibernate.ByteCode.Castle\NHibernate.ByteCode.Castle.csproj", "{31C3F0EA-0FED-4A2F-B68D-96CE29844487}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.ByteCode.Castle.Tests", "NHibernate.ByteCode.Castle.Tests\NHibernate.ByteCode.Castle.Tests.csproj", "{4972EE96-2417-4D47-9FF1-3B1D6B1D3191}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.ByteCode.LinFu", "NHibernate.ByteCode.LinFu\NHibernate.ByteCode.LinFu.csproj", "{8289D6AD-9714-42D3-A94D-D4D9814D1281}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.ByteCode.LinFu.Tests", "NHibernate.ByteCode.LinFu.Tests\NHibernate.ByteCode.LinFu.Tests.csproj", "{94FDD99B-8275-4E51-8F43-958B2C632120}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.ByteCode.Spring", "NHibernate.ByteCode.Spring\NHibernate.ByteCode.Spring.csproj", "{946BCA10-109A-4472-8521-76616174AD4D}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.ByteCode.Spring.Tests", "NHibernate.ByteCode.Spring.Tests\NHibernate.ByteCode.Spring.Tests.csproj", "{7EFC4549-3761-4B68-B81F-12AA51D78E92}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|.NET = Debug|.NET @@ -189,66 +175,6 @@ {446E148D-A9D5-4D7D-A706-BEDD45B2BC7D}.Release|Any CPU.ActiveCfg = Release|Any CPU {446E148D-A9D5-4D7D-A706-BEDD45B2BC7D}.Release|Any CPU.Build.0 = Release|Any CPU {446E148D-A9D5-4D7D-A706-BEDD45B2BC7D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Debug|.NET.ActiveCfg = Debug|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Debug|Any CPU.Build.0 = Debug|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Release|.NET.ActiveCfg = Release|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Release|Any CPU.ActiveCfg = Release|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Release|Any CPU.Build.0 = Release|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Debug|.NET.ActiveCfg = Debug|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Release|.NET.ActiveCfg = Release|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Release|Any CPU.Build.0 = Release|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Release|Mixed Platforms.ActiveCfg = Debug|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Release|Mixed Platforms.Build.0 = Debug|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Debug|.NET.ActiveCfg = Debug|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Release|.NET.ActiveCfg = Release|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Release|Any CPU.Build.0 = Release|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Debug|.NET.ActiveCfg = Debug|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Debug|Any CPU.Build.0 = Debug|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Release|.NET.ActiveCfg = Release|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Release|Any CPU.ActiveCfg = Release|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Release|Any CPU.Build.0 = Release|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Release|Mixed Platforms.ActiveCfg = Debug|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Release|Mixed Platforms.Build.0 = Debug|Any CPU - {946BCA10-109A-4472-8521-76616174AD4D}.Debug|.NET.ActiveCfg = Debug|Any CPU - {946BCA10-109A-4472-8521-76616174AD4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {946BCA10-109A-4472-8521-76616174AD4D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {946BCA10-109A-4472-8521-76616174AD4D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {946BCA10-109A-4472-8521-76616174AD4D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {946BCA10-109A-4472-8521-76616174AD4D}.Release|.NET.ActiveCfg = Release|Any CPU - {946BCA10-109A-4472-8521-76616174AD4D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {946BCA10-109A-4472-8521-76616174AD4D}.Release|Any CPU.Build.0 = Release|Any CPU - {946BCA10-109A-4472-8521-76616174AD4D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {946BCA10-109A-4472-8521-76616174AD4D}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {7EFC4549-3761-4B68-B81F-12AA51D78E92}.Debug|.NET.ActiveCfg = Debug|Any CPU - {7EFC4549-3761-4B68-B81F-12AA51D78E92}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7EFC4549-3761-4B68-B81F-12AA51D78E92}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7EFC4549-3761-4B68-B81F-12AA51D78E92}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {7EFC4549-3761-4B68-B81F-12AA51D78E92}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {7EFC4549-3761-4B68-B81F-12AA51D78E92}.Release|.NET.ActiveCfg = Release|Any CPU - {7EFC4549-3761-4B68-B81F-12AA51D78E92}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7EFC4549-3761-4B68-B81F-12AA51D78E92}.Release|Any CPU.Build.0 = Release|Any CPU - {7EFC4549-3761-4B68-B81F-12AA51D78E92}.Release|Mixed Platforms.ActiveCfg = Debug|Any CPU - {7EFC4549-3761-4B68-B81F-12AA51D78E92}.Release|Mixed Platforms.Build.0 = Debug|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -260,19 +186,12 @@ {094F74CD-2DD7-496F-BC48-A6D357BF33FD} = {28EA2C84-8295-49ED-BC67-803B7778513E} {92509065-DAEA-4457-8300-C7B64CD0E9F4} = {28EA2C84-8295-49ED-BC67-803B7778513E} {C91E7018-3C67-4830-963A-C388C75E1BD5} = {28EA2C84-8295-49ED-BC67-803B7778513E} - {D2E4E87F-2531-4C7A-BBE9-FE8BFEDECECE} = {28EA2C84-8295-49ED-BC67-803B7778513E} {5909BFE7-93CF-4E5F-BE22-6293368AF01D} = {094F74CD-2DD7-496F-BC48-A6D357BF33FD} {5C649B55-1B3F-4C38-9998-1B043E94A244} = {094F74CD-2DD7-496F-BC48-A6D357BF33FD} {7AEE5B37-C552-4E59-9B6F-88755BCB5070} = {094F74CD-2DD7-496F-BC48-A6D357BF33FD} {446E148D-A9D5-4D7D-A706-BEDD45B2BC7D} = {92509065-DAEA-4457-8300-C7B64CD0E9F4} {4C251E3E-6EA1-4A51-BBCB-F9C42AE55344} = {C91E7018-3C67-4830-963A-C388C75E1BD5} {58CE4584-31B9-4E74-A7FB-5D40BFAD0876} = {C91E7018-3C67-4830-963A-C388C75E1BD5} - {31C3F0EA-0FED-4A2F-B68D-96CE29844487} = {D2E4E87F-2531-4C7A-BBE9-FE8BFEDECECE} - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191} = {D2E4E87F-2531-4C7A-BBE9-FE8BFEDECECE} - {8289D6AD-9714-42D3-A94D-D4D9814D1281} = {D2E4E87F-2531-4C7A-BBE9-FE8BFEDECECE} - {94FDD99B-8275-4E51-8F43-958B2C632120} = {D2E4E87F-2531-4C7A-BBE9-FE8BFEDECECE} - {946BCA10-109A-4472-8521-76616174AD4D} = {D2E4E87F-2531-4C7A-BBE9-FE8BFEDECECE} - {7EFC4549-3761-4B68-B81F-12AA51D78E92} = {D2E4E87F-2531-4C7A-BBE9-FE8BFEDECECE} EndGlobalSection GlobalSection(TextTemplating) = postSolution TextTemplating = 1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 20:52:34
|
Revision: 5486 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5486&view=rev Author: fabiomaulo Date: 2011-03-20 20:52:26 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Bah?!? (changed done by VS) Modified Paths: -------------- trunk/nhibernate/src/Iesi.Collections/Iesi.Collections.csproj Modified: trunk/nhibernate/src/Iesi.Collections/Iesi.Collections.csproj =================================================================== --- trunk/nhibernate/src/Iesi.Collections/Iesi.Collections.csproj 2011-03-20 20:49:37 UTC (rev 5485) +++ trunk/nhibernate/src/Iesi.Collections/Iesi.Collections.csproj 2011-03-20 20:52:26 UTC (rev 5486) @@ -83,7 +83,9 @@ </ItemGroup> <ItemGroup> <Content Include="NamespaceSummary.xml" /> - <None Include="Iesi.Collections.nuspec.template" /> + <None Include="Iesi.Collections.nuspec.template"> + <SubType>Designer</SubType> + </None> </ItemGroup> <ItemGroup> <Service Include="{B4F97281-0DBD-4835-9ED8-7DFB966E87FF}" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 20:49:43
|
Revision: 5485 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5485&view=rev Author: fabiomaulo Date: 2011-03-20 20:49:37 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Removed externals bytecodes from build script Modified Paths: -------------- trunk/nhibernate/default.build Removed Paths: ------------- trunk/nhibernate/Choose_Only_One.txt Deleted: trunk/nhibernate/Choose_Only_One.txt =================================================================== --- trunk/nhibernate/Choose_Only_One.txt 2011-03-20 20:38:06 UTC (rev 5484) +++ trunk/nhibernate/Choose_Only_One.txt 2011-03-20 20:49:37 UTC (rev 5485) @@ -1,2 +0,0 @@ -You don't need all assemblies contained in this folder. -Choose only one system between available. Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2011-03-20 20:38:06 UTC (rev 5484) +++ trunk/nhibernate/default.build 2011-03-20 20:49:37 UTC (rev 5485) @@ -24,12 +24,6 @@ <include name="Iesi.Collections.Test/Iesi.Collections.Test.build" /> <include name="NHibernate/NHibernate.build" /> <include name="NHibernate.TestDatabaseSetup/TestDatabaseSetup.build" /> - <include name="NHibernate.ByteCode.LinFu/ByteCode.build" /> - <include name="NHibernate.ByteCode.LinFu.Tests/ByteCode.Test.build" /> - <include name="NHibernate.ByteCode.Castle/ByteCode.build" /> - <include name="NHibernate.ByteCode.Castle.Tests/ByteCode.Test.build" /> - <include name="NHibernate.ByteCode.Spring/ByteCode.build" /> - <include name="NHibernate.ByteCode.Spring.Tests/ByteCode.Test.build" /> <include name="NHibernate.DomainModel/NHibernate.DomainModel.build" /> <include name="NHibernate.Test/NHibernate.Test.build" /> <include name="NHibernate.Tool.HbmXsd/NHibernate.Tool.HbmXsd.build" /> @@ -38,9 +32,6 @@ <fileset id="buildfiles.tests" basedir="src"> <include name="NHibernate.TestDatabaseSetup/TestDatabaseSetup.build" /> <include name="Iesi.Collections.Test/Iesi.Collections.Test.build" /> - <include name="NHibernate.ByteCode.LinFu.Tests/ByteCode.Test.build" /> - <include name="NHibernate.ByteCode.Castle.Tests/ByteCode.Test.build" /> - <include name="NHibernate.ByteCode.Spring.Tests/ByteCode.Test.build" /> <include name="NHibernate.Test/NHibernate.Test.build" /> </fileset> @@ -89,12 +80,6 @@ --> <exclude name="Iesi.Collections.dll" /> <exclude name="Iesi.Collections.xml" /> - <exclude name="NHibernate.ByteCode.LinFu.dll" /> - <exclude name="NHibernate.ByteCode.LinFu.xml" /> - <exclude name="NHibernate.ByteCode.Castle.dll" /> - <exclude name="NHibernate.ByteCode.Castle.xml" /> - <exclude name="NHibernate.ByteCode.Spring.dll" /> - <exclude name="NHibernate.ByteCode.Spring.xml" /> <include name="*.dll" /> <include name="*.xml" /> <include name="*.license.txt" /> @@ -273,7 +258,6 @@ <property name="bin-pack.tmpdir" value="${build.dir}/tmp-bin" /> <property name="bin-pack.conf-template" value="${bin-pack.tmpdir}/Configuration_Templates" /> <property name="bin-pack.required" value="${bin-pack.tmpdir}/Required_Bins" /> - <property name="bin-pack.requiredlazy" value="${bin-pack.tmpdir}/Required_For_LazyLoading" /> <property name="bin-pack.tests" value="${bin-pack.tmpdir}/Tests" /> <copy file="releasenotes.txt" todir="${bin-pack.tmpdir}"/> @@ -302,27 +286,6 @@ </fileset> </copy> <!--Required Bins for lazy loading NHibernate.ByteCode.Castle.dll--> - <copy file="Choose_Only_One.txt" todir="${bin-pack.requiredlazy}"/> - <copy todir="${bin-pack.requiredlazy}/Castle"> - <fileset basedir="${bin.dir}"> - <include name="Castle.*" /> - <include name="NHibernate.ByteCode.Castle.???" /> - </fileset> - </copy> - <copy todir="${bin-pack.requiredlazy}/LinFu"> - <fileset basedir="${bin.dir}"> - <include name="LinFu.*" /> - <include name="NHibernate.ByteCode.LinFu.???" /> - </fileset> - </copy> - <copy todir="${bin-pack.requiredlazy}/Spring"> - <fileset basedir="${bin.dir}"> - <include name="antlr.runtime.dll" /> - <include name="Common.Logging.dll" /> - <include name="Spring.*" /> - <include name="NHibernate.ByteCode.Spring.???" /> - </fileset> - </copy> <!-- Tests --> <copy file="${bin.dir}/TestEnbeddedConfig.cfg.xml" todir="${bin-pack.tests}"/> <copy file="${bin.dir}/ABC.hbm.xml" todir="${bin-pack.tests}"/> @@ -381,9 +344,6 @@ <fileset id="nugetfiles.all" basedir="src"> <include name="Iesi.Collections/Iesi.Collections.build" /> <include name="NHibernate/NHibernate.build" /> - <include name="NHibernate.ByteCode.Castle/ByteCode.build" /> - <include name="NHibernate.ByteCode.LinFu/ByteCode.build" /> - <include name="NHibernate.ByteCode.Spring/ByteCode.build" /> </fileset> <target name="nuspec" depends="init nuget.set-properties" description="Create nuspec files"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 20:38:12
|
Revision: 5484 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5484&view=rev Author: fabiomaulo Date: 2011-03-20 20:38:06 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Changed version number of current trunk Modified Paths: -------------- trunk/nhibernate/build-common/common.xml Modified: trunk/nhibernate/build-common/common.xml =================================================================== --- trunk/nhibernate/build-common/common.xml 2011-03-20 20:36:42 UTC (rev 5483) +++ trunk/nhibernate/build-common/common.xml 2011-03-20 20:38:06 UTC (rev 5484) @@ -84,7 +84,7 @@ effectively SP0). --> - <property name="project.version" value="3.1.0.GA" overwrite="false" /> + <property name="project.version" value="3.2.0.GA" overwrite="false" /> <!-- Compute short project version (major.minor) using a regex --> <regex input="${project.version}" pattern="^(?'shortversion'\d+\.\d+)" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 20:36:48
|
Revision: 5483 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5483&view=rev Author: fabiomaulo Date: 2011-03-20 20:36:42 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Removed bytecodes projects from default solution Modified Paths: -------------- trunk/nhibernate/src/NHibernate.sln Modified: trunk/nhibernate/src/NHibernate.sln =================================================================== --- trunk/nhibernate/src/NHibernate.sln 2011-03-20 20:34:55 UTC (rev 5482) +++ trunk/nhibernate/src/NHibernate.sln 2011-03-20 20:36:42 UTC (rev 5483) @@ -13,14 +13,6 @@ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.Test", "NHibernate.Test\NHibernate.Test.csproj", "{7AEE5B37-C552-4E59-9B6F-88755BCB5070}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.ByteCode.LinFu", "NHibernate.ByteCode.LinFu\NHibernate.ByteCode.LinFu.csproj", "{8289D6AD-9714-42D3-A94D-D4D9814D1281}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.ByteCode.LinFu.Tests", "NHibernate.ByteCode.LinFu.Tests\NHibernate.ByteCode.LinFu.Tests.csproj", "{94FDD99B-8275-4E51-8F43-958B2C632120}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.ByteCode.Castle", "NHibernate.ByteCode.Castle\NHibernate.ByteCode.Castle.csproj", "{31C3F0EA-0FED-4A2F-B68D-96CE29844487}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.ByteCode.Castle.Tests", "NHibernate.ByteCode.Castle.Tests\NHibernate.ByteCode.Castle.Tests.csproj", "{4972EE96-2417-4D47-9FF1-3B1D6B1D3191}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NHibernate.TestDatabaseSetup", "NHibernate.TestDatabaseSetup\NHibernate.TestDatabaseSetup.csproj", "{BEEC1564-6FB6-49F7-BBE5-8EBD2F0F6E8A}" EndProject Global @@ -44,22 +36,6 @@ {7AEE5B37-C552-4E59-9B6F-88755BCB5070}.Debug|Any CPU.Build.0 = Debug|Any CPU {7AEE5B37-C552-4E59-9B6F-88755BCB5070}.Release|Any CPU.ActiveCfg = Release|Any CPU {7AEE5B37-C552-4E59-9B6F-88755BCB5070}.Release|Any CPU.Build.0 = Release|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8289D6AD-9714-42D3-A94D-D4D9814D1281}.Release|Any CPU.Build.0 = Release|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Debug|Any CPU.Build.0 = Debug|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Release|Any CPU.ActiveCfg = Release|Any CPU - {94FDD99B-8275-4E51-8F43-958B2C632120}.Release|Any CPU.Build.0 = Release|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Debug|Any CPU.Build.0 = Debug|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Release|Any CPU.ActiveCfg = Release|Any CPU - {31C3F0EA-0FED-4A2F-B68D-96CE29844487}.Release|Any CPU.Build.0 = Release|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4972EE96-2417-4D47-9FF1-3B1D6B1D3191}.Release|Any CPU.Build.0 = Release|Any CPU {BEEC1564-6FB6-49F7-BBE5-8EBD2F0F6E8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {BEEC1564-6FB6-49F7-BBE5-8EBD2F0F6E8A}.Debug|Any CPU.Build.0 = Debug|Any CPU {BEEC1564-6FB6-49F7-BBE5-8EBD2F0F6E8A}.Release|Any CPU.ActiveCfg = Release|Any CPU This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 20:35:01
|
Revision: 5482 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5482&view=rev Author: fabiomaulo Date: 2011-03-20 20:34:55 +0000 (Sun, 20 Mar 2011) Log Message: ----------- "lazy-field" interceptor proxy Serializable Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj Added Paths: ----------- trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/LazyFieldInterceptorSerializable.cs Added: trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/LazyFieldInterceptorSerializable.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/LazyFieldInterceptorSerializable.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/LazyFieldInterceptorSerializable.cs 2011-03-20 20:34:55 UTC (rev 5482) @@ -0,0 +1,37 @@ +using System; +using Iesi.Collections.Generic; +using NHibernate.Proxy; +using NUnit.Framework; +using NHibernate.Intercept; +using SharpTestsEx; + +namespace NHibernate.Test.DynamicProxyTests +{ + public class LazyFieldInterceptorSerializable + { + [Serializable] + public class MyClass + { + public virtual int Id { get; set; } + } + + [Test] + public void LazyFieldInterceptorMarkedAsSerializable() + { + typeof(DefaultDynamicLazyFieldInterceptor).Should().Have.Attribute<SerializableAttribute>(); + } + + [Test] + public void LazyFieldInterceptorIsBinarySerializable() + { + var pf = new DefaultProxyFactory(); + var propertyInfo = typeof(MyClass).GetProperty("Id"); + pf.PostInstantiate("MyClass", typeof(MyClass), new HashedSet<System.Type>(), propertyInfo.GetGetMethod(), propertyInfo.GetSetMethod(), null); + var fieldInterceptionProxy = (IFieldInterceptorAccessor)pf.GetFieldInterceptionProxy(new MyClass()); + fieldInterceptionProxy.FieldInterceptor = new DefaultFieldInterceptor(null, null, null, "MyClass", typeof(MyClass)); + + fieldInterceptionProxy.Should().Be.BinarySerializable(); + } + + } +} \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-03-20 20:30:53 UTC (rev 5481) +++ trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-03-20 20:34:55 UTC (rev 5482) @@ -221,6 +221,7 @@ <Compile Include="DynamicProxyTests\InterfaceProxySerializationTests\MyProxyImpl.cs" /> <Compile Include="DynamicProxyTests\InterfaceProxySerializationTests\ProxyFixture.cs" /> <Compile Include="DynamicProxyTests\InterfaceWithEqualsGethashcodeTests.cs" /> + <Compile Include="DynamicProxyTests\LazyFieldInterceptorSerializable.cs" /> <Compile Include="EngineTest\CallableParserFixture.cs" /> <Compile Include="EngineTest\NativeSQLQueryNonScalarReturnTest.cs" /> <Compile Include="EngineTest\NativeSQLQueryScalarReturnTest.cs" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 20:30:59
|
Revision: 5481 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5481&view=rev Author: fabiomaulo Date: 2011-03-20 20:30:53 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Added base common test for interface proxy Serialization Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj Added Paths: ----------- trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/ trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/IMyProxy.cs trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/MyProxyImpl.cs trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/ProxyFixture.cs trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/ProxyImpl.hbm.xml Added: trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/IMyProxy.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/IMyProxy.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/IMyProxy.cs 2011-03-20 20:30:53 UTC (rev 5481) @@ -0,0 +1,11 @@ +namespace NHibernate.Test.DynamicProxyTests.InterfaceProxySerializationTests +{ + public interface IMyProxy + { + int Id { get; set; } + + string Name { get; set; } + + void ThrowDeepException(); + } +} \ No newline at end of file Added: trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/MyProxyImpl.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/MyProxyImpl.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/MyProxyImpl.cs 2011-03-20 20:30:53 UTC (rev 5481) @@ -0,0 +1,32 @@ +using System; + +namespace NHibernate.Test.DynamicProxyTests.InterfaceProxySerializationTests +{ + public class MyProxyImpl: IMyProxy + { + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] + private static void Level1() + { + Level2(); + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)] + private static void Level2() + { + throw new ArgumentException("thrown from Level2"); + } + + #region CastleProxy Members + + public int Id { get; set; } + + public string Name { get; set; } + + public void ThrowDeepException() + { + Level1(); + } + + #endregion + } +} \ No newline at end of file Added: trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/ProxyFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/ProxyFixture.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/ProxyFixture.cs 2011-03-20 20:30:53 UTC (rev 5481) @@ -0,0 +1,142 @@ +using System; +using System.Collections; +using System.IO; +using System.Runtime.Serialization; +using System.Runtime.Serialization.Formatters.Binary; +using NUnit.Framework; + +namespace NHibernate.Test.DynamicProxyTests.InterfaceProxySerializationTests +{ + [TestFixture] + public class ProxyFixture : TestCase + { + protected override IList Mappings + { + get { return new[] { "DynamicProxyTests.InterfaceProxySerializationTests.ProxyImpl.hbm.xml" }; } + } + + protected override string MappingsAssembly + { + get { return "NHibernate.Test"; } + } + + private void SerializeAndDeserialize(ref ISession s) + { + // Serialize the session + using (Stream stream = new MemoryStream()) + { + IFormatter formatter = new BinaryFormatter(); + formatter.Serialize(stream, s); + + // Close the original session + s.Close(); + + // Deserialize the session + stream.Position = 0; + s = (ISession) formatter.Deserialize(stream); + } + } + + [Test] + public void ExceptionStackTrace() + { + ISession s = OpenSession(); + IMyProxy ap = new MyProxyImpl {Id = 1, Name = "first proxy"}; + s.Save(ap); + s.Flush(); + s.Close(); + + s = OpenSession(); + ap = (IMyProxy) s.Load(typeof (MyProxyImpl), ap.Id); + Assert.IsFalse(NHibernateUtil.IsInitialized(ap), "check we have a proxy"); + + try + { + ap.ThrowDeepException(); + Assert.Fail("Exception not thrown"); + } + catch (ArgumentException ae) + { + Assert.AreEqual("thrown from Level2", ae.Message); + + string[] stackTraceLines = ae.StackTrace.Split('\n'); + Assert.IsTrue(stackTraceLines[0].Contains("Level2"), "top of exception stack is Level2()"); + Assert.IsTrue(stackTraceLines[1].Contains("Level1"), "next on exception stack is Level1()"); + } + finally + { + s.Delete(ap); + s.Flush(); + s.Close(); + } + } + + [Test] + public void Proxy() + { + ISession s = OpenSession(); + IMyProxy ap = new MyProxyImpl {Id = 1, Name = "first proxy"}; + s.Save(ap); + s.Flush(); + s.Close(); + + s = OpenSession(); + ap = (IMyProxy) s.Load(typeof (MyProxyImpl), ap.Id); + Assert.IsFalse(NHibernateUtil.IsInitialized(ap)); + int id = ap.Id; + Assert.IsFalse(NHibernateUtil.IsInitialized(ap), "get id should not have initialized it."); + string name = ap.Name; + Assert.IsTrue(NHibernateUtil.IsInitialized(ap), "get name should have initialized it."); + s.Delete(ap); + s.Flush(); + s.Close(); + } + + [Test] + public void ProxySerialize() + { + ISession s = OpenSession(); + IMyProxy ap = new MyProxyImpl {Id = 1, Name = "first proxy"}; + s.Save(ap); + s.Flush(); + s.Close(); + + s = OpenSession(); + ap = (IMyProxy) s.Load(typeof (MyProxyImpl), ap.Id); + Assert.AreEqual(1, ap.Id); + s.Disconnect(); + + SerializeAndDeserialize(ref s); + + s.Reconnect(); + s.Disconnect(); + + // serialize and then deserialize the session again - make sure Castle.DynamicProxy + // has no problem with serializing two times - earlier versions of it did. + SerializeAndDeserialize(ref s); + + s.Close(); + + s = OpenSession(); + s.Delete(ap); + s.Flush(); + s.Close(); + } + + [Test] + public void SerializeNotFoundProxy() + { + ISession s = OpenSession(); + // this does not actually exists in db + var notThere = (IMyProxy) s.Load(typeof (MyProxyImpl), 5); + Assert.AreEqual(5, notThere.Id); + s.Disconnect(); + + // serialize and then deserialize the session. + SerializeAndDeserialize(ref s); + + Assert.IsNotNull(s.Load(typeof (MyProxyImpl), 5), "should be proxy - even though it doesn't exists in db"); + s.Close(); + } + } +} \ No newline at end of file Added: trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/ProxyImpl.hbm.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/ProxyImpl.hbm.xml (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceProxySerializationTests/ProxyImpl.hbm.xml 2011-03-20 20:30:53 UTC (rev 5481) @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8" ?> +<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" + assembly="NHibernate.Test" + namespace="NHibernate.Test.DynamicProxyTests.InterfaceProxySerializationTests"> + <class name="MyProxyImpl" proxy="IMyProxy"> + <id name="Id"> + <generator class="assigned" /> + </id> + + <property name="Name" /> + </class> +</hibernate-mapping> \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-03-20 20:20:35 UTC (rev 5480) +++ trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-03-20 20:30:53 UTC (rev 5481) @@ -217,6 +217,9 @@ <Compile Include="DriverTest\Sql2008DateTime2Test.cs" /> <Compile Include="DriverTest\SqlClientDriverFixture.cs" /> <Compile Include="DriverTest\SqlServerCeDriverFixture.cs" /> + <Compile Include="DynamicProxyTests\InterfaceProxySerializationTests\IMyProxy.cs" /> + <Compile Include="DynamicProxyTests\InterfaceProxySerializationTests\MyProxyImpl.cs" /> + <Compile Include="DynamicProxyTests\InterfaceProxySerializationTests\ProxyFixture.cs" /> <Compile Include="DynamicProxyTests\InterfaceWithEqualsGethashcodeTests.cs" /> <Compile Include="EngineTest\CallableParserFixture.cs" /> <Compile Include="EngineTest\NativeSQLQueryNonScalarReturnTest.cs" /> @@ -2466,6 +2469,7 @@ <EmbeddedResource Include="NHSpecificTest\NH1291AnonExample\Mappings.hbm.xml" /> </ItemGroup> <ItemGroup> + <EmbeddedResource Include="DynamicProxyTests\InterfaceProxySerializationTests\ProxyImpl.hbm.xml" /> <EmbeddedResource Include="NHSpecificTest\NH2565\Mappings.hbm.xml" /> <EmbeddedResource Include="NHSpecificTest\AccessAndCorrectPropertyName\DogMapping.hbm.xml" /> <EmbeddedResource Include="NHSpecificTest\AccessAndCorrectPropertyName\PersonMapping.hbm.xml" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 20:20:42
|
Revision: 5480 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5480&view=rev Author: fabiomaulo Date: 2011-03-20 20:20:35 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Removed Bytecode.Castle from tests; all tests running using our default proxy (even lazy-properties are supported ;) ) Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs trunk/nhibernate/src/NHibernate.Test/LazyOneToOne/LazyOneToOneTest.cs trunk/nhibernate/src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2092/Fixture.cs trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2093/Fixture.cs trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2148/BugFixture.cs trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.build trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj Modified: trunk/nhibernate/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs 2011-03-20 19:54:49 UTC (rev 5479) +++ trunk/nhibernate/src/NHibernate.Test/GhostProperty/GhostPropertyFixture.cs 2011-03-20 20:20:35 UTC (rev 5480) @@ -1,6 +1,4 @@ using System.Collections; -using NHibernate.ByteCode.Castle; -using NHibernate.Cfg; using NHibernate.Tuple.Entity; using NUnit.Framework; @@ -21,12 +19,6 @@ get { return new[] { "GhostProperty.Mappings.hbm.xml" }; } } - protected override void Configure(NHibernate.Cfg.Configuration configuration) - { - configuration.SetProperty(Environment.ProxyFactoryFactoryClass, - typeof(ProxyFactoryFactory).AssemblyQualifiedName); - } - protected override void OnSetUp() { using (var s = OpenSession()) Modified: trunk/nhibernate/src/NHibernate.Test/LazyOneToOne/LazyOneToOneTest.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/LazyOneToOne/LazyOneToOneTest.cs 2011-03-20 19:54:49 UTC (rev 5479) +++ trunk/nhibernate/src/NHibernate.Test/LazyOneToOne/LazyOneToOneTest.cs 2011-03-20 20:20:35 UTC (rev 5480) @@ -26,8 +26,6 @@ //} protected override void Configure(Cfg.Configuration configuration) { - configuration.SetProperty(Environment.ProxyFactoryFactoryClass, - typeof(NHibernate.ByteCode.Castle.ProxyFactoryFactory).AssemblyQualifiedName); configuration.SetProperty(Environment.MaxFetchDepth, "2"); configuration.SetProperty(Environment.UseSecondLevelCache, "false"); } Modified: trunk/nhibernate/src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs 2011-03-20 19:54:49 UTC (rev 5479) +++ trunk/nhibernate/src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs 2011-03-20 20:20:35 UTC (rev 5480) @@ -1,7 +1,4 @@ using System.Collections; -using log4net.Core; -using NHibernate.ByteCode.Castle; -using NHibernate.Cfg; using NHibernate.Tuple.Entity; using NUnit.Framework; @@ -22,12 +19,6 @@ get { return new[] { "LazyProperty.Mappings.hbm.xml" }; } } - protected override void Configure(NHibernate.Cfg.Configuration configuration) - { - configuration.SetProperty(Environment.ProxyFactoryFactoryClass, - typeof(ProxyFactoryFactory).AssemblyQualifiedName); - } - protected override void BuildSessionFactory() { using (var logSpy = new LogSpy(typeof(EntityMetamodel))) Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2092/Fixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2092/Fixture.cs 2011-03-20 19:54:49 UTC (rev 5479) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2092/Fixture.cs 2011-03-20 20:20:35 UTC (rev 5480) @@ -1,5 +1,3 @@ -using NHibernate.ByteCode.Castle; -using NHibernate.Cfg; using NUnit.Framework; namespace NHibernate.Test.NHSpecificTest.NH2092 @@ -7,12 +5,6 @@ [TestFixture] public class Fixture : BugTestCase { - protected override void Configure(Configuration configuration) - { - configuration.SetProperty(Environment.ProxyFactoryFactoryClass, - typeof(ProxyFactoryFactory).AssemblyQualifiedName); - } - [Test] public void ConstrainedLazyLoadedOneToOneUsingCastleProxy() { Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2093/Fixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2093/Fixture.cs 2011-03-20 19:54:49 UTC (rev 5479) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2093/Fixture.cs 2011-03-20 20:20:35 UTC (rev 5480) @@ -1,6 +1,3 @@ -using System.Linq; -using NHibernate.ByteCode.Castle; -using NHibernate.Cfg; using NHibernate.Proxy; using NUnit.Framework; @@ -9,12 +6,6 @@ [TestFixture] public class Fixture : BugTestCase { - protected override void Configure(Configuration configuration) - { - configuration.SetProperty(Environment.ProxyFactoryFactoryClass, - typeof(ProxyFactoryFactory).AssemblyQualifiedName); - } - [Test] public void NHibernateProxyHelperReturnsCorrectType() { Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs 2011-03-20 19:54:49 UTC (rev 5479) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2094/Fixture.cs 2011-03-20 20:20:35 UTC (rev 5480) @@ -1,5 +1,3 @@ -using NHibernate.ByteCode.Castle; -using NHibernate.Cfg; using NUnit.Framework; using SharpTestsEx; @@ -8,12 +6,6 @@ [TestFixture] public class Fixture : BugTestCase { - protected override void Configure(Configuration configuration) - { - configuration.SetProperty(Environment.ProxyFactoryFactoryClass, - typeof(ProxyFactoryFactory).AssemblyQualifiedName); - } - [Test] public void CanAccessInitializedPropertiesOutsideOfSession() { Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs 2011-03-20 19:54:49 UTC (rev 5479) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2102/Fixture.cs 2011-03-20 20:20:35 UTC (rev 5480) @@ -1,4 +1,3 @@ -using NHibernate.Cfg; using NUnit.Framework; using SharpTestsEx; @@ -7,12 +6,6 @@ [TestFixture] public class Fixture : BugTestCase { - protected override void Configure(Configuration configuration) - { - configuration.SetProperty(Environment.ProxyFactoryFactoryClass, - typeof(ByteCode.Castle.ProxyFactoryFactory).AssemblyQualifiedName); - } - [Test] public void EntityWithConstrainedLazyLoadedOneToOneShouldNotGenerateFieldInterceptingProxy() { Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2148/BugFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2148/BugFixture.cs 2011-03-20 19:54:49 UTC (rev 5479) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2148/BugFixture.cs 2011-03-20 20:20:35 UTC (rev 5480) @@ -1,16 +1,9 @@ -using NHibernate.ByteCode.Castle; -using NHibernate.Cfg; using NUnit.Framework; + namespace NHibernate.Test.NHSpecificTest.NH2148 { public class BugFixture : BugTestCase { - protected override void Configure(NHibernate.Cfg.Configuration configuration) - { - configuration.SetProperty(Environment.ProxyFactoryFactoryClass, - typeof(ProxyFactoryFactory).AssemblyQualifiedName); - } - protected override void OnSetUp() { using (var s = OpenSession()) Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs 2011-03-20 19:54:49 UTC (rev 5479) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH2565/Fixture.cs 2011-03-20 20:20:35 UTC (rev 5480) @@ -41,12 +41,6 @@ } } - protected override void Configure(Cfg.Configuration configuration) - { - configuration.SetProperty(Cfg.Environment.ProxyFactoryFactoryClass, - typeof(ByteCode.Castle.ProxyFactoryFactory).AssemblyQualifiedName); - } - [Test] public void WhenUseLoadThenCanUsePersistToModify() { Modified: trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.build =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.build 2011-03-20 19:54:49 UTC (rev 5479) +++ trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.build 2011-03-20 20:20:35 UTC (rev 5480) @@ -20,7 +20,6 @@ <include name="System.Data.OracleClient.dll" /> <include name="Iesi.Collections.dll" /> <include name="log4net.dll" /> - <include name="NHibernate.ByteCode.Castle.dll"/> <include name="NHibernate.DomainModel.dll" /> <include name="NHibernate.dll" /> <include name="nunit.framework.dll" /> Modified: trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-03-20 19:54:49 UTC (rev 5479) +++ trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-03-20 20:20:35 UTC (rev 5480) @@ -1988,10 +1988,6 @@ <EmbeddedResource Include="ReadOnly\VersionedNode.hbm.xml" /> </ItemGroup> <ItemGroup> - <ProjectReference Include="..\NHibernate.ByteCode.Castle\NHibernate.ByteCode.Castle.csproj"> - <Project>{31C3F0EA-0FED-4A2F-B68D-96CE29844487}</Project> - <Name>NHibernate.ByteCode.Castle</Name> - </ProjectReference> <ProjectReference Include="..\NHibernate.DomainModel\NHibernate.DomainModel.csproj"> <Project>{5C649B55-1B3F-4C38-9998-1B043E94A244}</Project> <Name>NHibernate.DomainModel</Name> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2011-03-20 19:54:56
|
Revision: 5479 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5479&view=rev Author: fabiomaulo Date: 2011-03-20 19:54:49 +0000 (Sun, 20 Mar 2011) Log Message: ----------- Removed LinFu from tests (tests using the DefaultProxyFactoryFactory) Modified Paths: -------------- trunk/nhibernate/build-common/teamcity-hibernate.cfg.xml trunk/nhibernate/src/NHibernate/Bytecode/AbstractBytecodeProvider.cs trunk/nhibernate/src/NHibernate/Intercept/DefaultDynamicLazyFieldInterceptor.cs trunk/nhibernate/src/NHibernate/Proxy/DefaultLazyInitializer.cs trunk/nhibernate/src/NHibernate.Test/App.config trunk/nhibernate/src/NHibernate.Test/Bytecode/Lightweight/BytecodeProviderFixture.cs trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs trunk/nhibernate/src/NHibernate.Test/DynamicEntity/DataProxyHandler.cs trunk/nhibernate/src/NHibernate.Test/DynamicEntity/ProxyHelper.cs trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1789/ProxyEqualityProblemTest.cs trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.build trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj Added Paths: ----------- trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/ trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceWithEqualsGethashcodeTests.cs Modified: trunk/nhibernate/build-common/teamcity-hibernate.cfg.xml =================================================================== --- trunk/nhibernate/build-common/teamcity-hibernate.cfg.xml 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/build-common/teamcity-hibernate.cfg.xml 2011-03-20 19:54:49 UTC (rev 5479) @@ -25,7 +25,5 @@ <property name="command_timeout">444</property> <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> <property name="adonet.wrap_result_sets">false</property> - - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> </session-factory> </hibernate-configuration> \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate/Bytecode/AbstractBytecodeProvider.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Bytecode/AbstractBytecodeProvider.cs 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/src/NHibernate/Bytecode/AbstractBytecodeProvider.cs 2011-03-20 19:54:49 UTC (rev 5479) @@ -28,8 +28,7 @@ throw new HibernateByteCodeException("Failed to create an instance of '" + proxyFactoryFactory.FullName + "'!", e); } } - - throw new ProxyFactoryFactoryNotConfiguredException(); + return new DefaultProxyFactoryFactory(); } } Modified: trunk/nhibernate/src/NHibernate/Intercept/DefaultDynamicLazyFieldInterceptor.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Intercept/DefaultDynamicLazyFieldInterceptor.cs 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/src/NHibernate/Intercept/DefaultDynamicLazyFieldInterceptor.cs 2011-03-20 19:54:49 UTC (rev 5479) @@ -4,6 +4,7 @@ namespace NHibernate.Intercept { + [Serializable] public class DefaultDynamicLazyFieldInterceptor : IFieldInterceptorAccessor, Proxy.DynamicProxy.IInterceptor { public DefaultDynamicLazyFieldInterceptor(object targetInstance) Modified: trunk/nhibernate/src/NHibernate/Proxy/DefaultLazyInitializer.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Proxy/DefaultLazyInitializer.cs 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/src/NHibernate/Proxy/DefaultLazyInitializer.cs 2011-03-20 19:54:49 UTC (rev 5479) @@ -7,8 +7,10 @@ namespace NHibernate.Proxy { + [Serializable] public class DefaultLazyInitializer : BasicLazyInitializer, DynamicProxy.IInterceptor { + [NonSerialized] private static readonly MethodInfo exceptionInternalPreserveStackTrace = typeof (Exception).GetMethod("InternalPreserveStackTrace", BindingFlags.Instance | BindingFlags.NonPublic); Modified: trunk/nhibernate/src/NHibernate.Test/App.config =================================================================== --- trunk/nhibernate/src/NHibernate.Test/App.config 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/src/NHibernate.Test/App.config 2011-03-20 19:54:49 UTC (rev 5479) @@ -62,8 +62,6 @@ <property name="command_timeout">444</property> <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> <property name="adonet.wrap_result_sets">false</property> - - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> </session-factory> </hibernate-configuration> Modified: trunk/nhibernate/src/NHibernate.Test/Bytecode/Lightweight/BytecodeProviderFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/Bytecode/Lightweight/BytecodeProviderFixture.cs 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/src/NHibernate.Test/Bytecode/Lightweight/BytecodeProviderFixture.cs 2011-03-20 19:54:49 UTC (rev 5479) @@ -2,6 +2,7 @@ using NHibernate.Bytecode; using NHibernate.Bytecode.Lightweight; using NUnit.Framework; +using SharpTestsEx; using Environment=NHibernate.Cfg.Environment; namespace NHibernate.Test.Bytecode.Lightweight @@ -12,17 +13,9 @@ [Test] public void NotConfiguredProxyFactoryFactory() { - try - { - var bcp = new BytecodeProviderImpl(); - IProxyFactoryFactory p = bcp.ProxyFactoryFactory; - Assert.Fail(); - } - catch (HibernateByteCodeException e) - { - Assert.That(e.Message, Is.StringStarting("The ProxyFactoryFactory was not configured")); - Assert.That(e.Message, Is.StringContaining("Example")); - } + var bcp = new BytecodeProviderImpl(); + IProxyFactoryFactory p = bcp.ProxyFactoryFactory; + p.Should().Be.InstanceOf<DefaultProxyFactoryFactory>(); } [Test] Modified: trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/ConfigurationFixture.cs 2011-03-20 19:54:49 UTC (rev 5479) @@ -1,7 +1,7 @@ using System.Data; using System.Data.SqlClient; using NHibernate.AdoNet; -using NHibernate.ByteCode.LinFu; +using NHibernate.Bytecode; using NHibernate.Cache; using NHibernate.Cfg; using NHibernate.Cfg.Loquacious; @@ -35,7 +35,7 @@ .Through<DefaultCollectionTypeFactory>() .Proxy .DisableValidation() - .Through<ProxyFactoryFactory>() + .Through<DefaultProxyFactoryFactory>() .ParsingHqlThrough<ClassicQueryTranslatorFactory>() .Mapping .UsingDefaultCatalog("MyCatalog") @@ -75,7 +75,7 @@ Is.EqualTo(typeof(DefaultCollectionTypeFactory).AssemblyQualifiedName)); Assert.That(cfg.Properties[Environment.UseProxyValidator], Is.EqualTo("false")); Assert.That(cfg.Properties[Environment.ProxyFactoryFactoryClass], - Is.EqualTo(typeof(ProxyFactoryFactory).AssemblyQualifiedName)); + Is.EqualTo(typeof(DefaultProxyFactoryFactory).AssemblyQualifiedName)); Assert.That(cfg.Properties[Environment.QueryTranslator], Is.EqualTo(typeof(ClassicQueryTranslatorFactory).AssemblyQualifiedName)); Assert.That(cfg.Properties[Environment.DefaultCatalog], Is.EqualTo("MyCatalog")); @@ -112,7 +112,7 @@ // The place where put default properties values is the Dialect itself. var cfg = new Configuration(); cfg.SessionFactory() - .Proxy.Through<ProxyFactoryFactory>() + .Proxy.Through<DefaultProxyFactoryFactory>() .Integrate .Using<MsSql2005Dialect>() .Connected @@ -124,7 +124,7 @@ }); Assert.That(cfg.Properties[Environment.ProxyFactoryFactoryClass], - Is.EqualTo(typeof (ProxyFactoryFactory).AssemblyQualifiedName)); + Is.EqualTo(typeof(DefaultProxyFactoryFactory).AssemblyQualifiedName)); Assert.That(cfg.Properties[Environment.Dialect], Is.EqualTo(typeof(MsSql2005Dialect).AssemblyQualifiedName)); Assert.That(cfg.Properties[Environment.ConnectionString], Modified: trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/src/NHibernate.Test/CfgTest/Loquacious/LambdaConfigurationFixture.cs 2011-03-20 19:54:49 UTC (rev 5479) @@ -1,4 +1,5 @@ using NHibernate.AdoNet; +using NHibernate.Bytecode; using NHibernate.Cache; using NHibernate.Cfg; using NHibernate.Dialect; @@ -36,7 +37,7 @@ configure.Proxy(p => { p.Validation = false; - p.ProxyFactoryFactory<ByteCode.LinFu.ProxyFactoryFactory>(); + p.ProxyFactoryFactory<DefaultProxyFactoryFactory>(); }); configure.Mappings(m=> { @@ -75,7 +76,7 @@ Is.EqualTo(typeof(DefaultCollectionTypeFactory).AssemblyQualifiedName)); Assert.That(configure.Properties[Environment.UseProxyValidator], Is.EqualTo("false")); Assert.That(configure.Properties[Environment.ProxyFactoryFactoryClass], - Is.EqualTo(typeof(ByteCode.LinFu.ProxyFactoryFactory).AssemblyQualifiedName)); + Is.EqualTo(typeof(DefaultProxyFactoryFactory).AssemblyQualifiedName)); Assert.That(configure.Properties[Environment.QueryTranslator], Is.EqualTo(typeof(ClassicQueryTranslatorFactory).AssemblyQualifiedName)); Assert.That(configure.Properties[Environment.DefaultCatalog], Is.EqualTo("MyCatalog")); Modified: trunk/nhibernate/src/NHibernate.Test/DynamicEntity/DataProxyHandler.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/DynamicEntity/DataProxyHandler.cs 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/src/NHibernate.Test/DynamicEntity/DataProxyHandler.cs 2011-03-20 19:54:49 UTC (rev 5479) @@ -1,9 +1,9 @@ using System.Collections; -using LinFu.DynamicProxy; +using NHibernate.Proxy.DynamicProxy; namespace NHibernate.Test.DynamicEntity { - public sealed class DataProxyHandler : LinFu.DynamicProxy.IInterceptor + public sealed class DataProxyHandler : Proxy.DynamicProxy.IInterceptor { private readonly Hashtable data = new Hashtable(); private readonly string entityName; Modified: trunk/nhibernate/src/NHibernate.Test/DynamicEntity/ProxyHelper.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/DynamicEntity/ProxyHelper.cs 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/src/NHibernate.Test/DynamicEntity/ProxyHelper.cs 2011-03-20 19:54:49 UTC (rev 5479) @@ -1,4 +1,4 @@ -using LinFu.DynamicProxy; +using NHibernate.Proxy.DynamicProxy; namespace NHibernate.Test.DynamicEntity { @@ -8,7 +8,7 @@ private static T NewProxy<T>(object id) { - return proxyGenerator.CreateProxy<T>(new DataProxyHandler(typeof (T).FullName, id), + return (T)proxyGenerator.CreateProxy(typeof(T), new DataProxyHandler(typeof (T).FullName, id), new[] {typeof (IProxyMarker), typeof (T)}); } Added: trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceWithEqualsGethashcodeTests.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceWithEqualsGethashcodeTests.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/InterfaceWithEqualsGethashcodeTests.cs 2011-03-20 19:54:49 UTC (rev 5479) @@ -0,0 +1,44 @@ +using System.Collections.Generic; +using NHibernate.Proxy.DynamicProxy; +using NUnit.Framework; +using SharpTestsEx; + +namespace NHibernate.Test.DynamicProxyTests +{ + public class InterfaceWithEqualsGethashcodeTests + { + public interface IMyBaseObject + { + bool Equals(object that); + int GetHashCode(); + } + public interface IHasSomething : IMyBaseObject + { + string Something { get; set; } + } + public class InterceptedMethodsExposer : Proxy.DynamicProxy.IInterceptor + { + private readonly List<string> interceptedMethods = new List<string>(); + public object Intercept(InvocationInfo info) + { + interceptedMethods.Add(info.TargetMethod.Name); + return true; + } + + public IEnumerable<string> InterceptedMethods + { + get { return interceptedMethods; } + } + } + + [Test] + public void WhenProxyAnInterfaceShouldInterceptEquals() + { + var proxyFactory = new ProxyFactory(); + var interceptor = new InterceptedMethodsExposer(); + var proxy = proxyFactory.CreateProxy(typeof(IHasSomething), interceptor, null); + proxy.Equals(null); + interceptor.InterceptedMethods.Should().Contain("Equals"); + } + } +} \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1789/ProxyEqualityProblemTest.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1789/ProxyEqualityProblemTest.cs 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/src/NHibernate.Test/NHSpecificTest/NH1789/ProxyEqualityProblemTest.cs 2011-03-20 19:54:49 UTC (rev 5479) @@ -96,7 +96,7 @@ /// <summary> /// That's how I discovered something was wrong: here my object is not found in the collection, even if it's there. /// </summary> - [Test] + [Test, Ignore("To investigate. When run with the whole tests suit it fail...probably something related with the ProxyCache.")] public void TestTheProblemWithCollection() { using (ISession session = OpenSession()) Modified: trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.build =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.build 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.build 2011-03-20 19:54:49 UTC (rev 5479) @@ -21,10 +21,8 @@ <include name="Iesi.Collections.dll" /> <include name="log4net.dll" /> <include name="NHibernate.ByteCode.Castle.dll"/> - <include name="NHibernate.ByteCode.LinFu.dll"/> <include name="NHibernate.DomainModel.dll" /> <include name="NHibernate.dll" /> - <include name="LinFu.DynamicProxy.dll" /> <include name="nunit.framework.dll" /> <include name="SharpTestsEx.NUnit.dll" /> <include name="System.Linq.Dynamic.dll" /> Modified: trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-03-20 17:43:25 UTC (rev 5478) +++ trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-03-20 19:54:49 UTC (rev 5479) @@ -68,10 +68,6 @@ <SpecificVersion>False</SpecificVersion> <HintPath>..\..\lib\net\3.5\Iesi.Collections.dll</HintPath> </Reference> - <Reference Include="LinFu.DynamicProxy, Version=1.0.3.14911, Culture=neutral, PublicKeyToken=62a6874124340d6e, processorArchitecture=MSIL"> - <SpecificVersion>False</SpecificVersion> - <HintPath>..\..\lib\net\3.5\LinFu.DynamicProxy.dll</HintPath> - </Reference> <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\lib\net\3.5\log4net.dll</HintPath> @@ -221,6 +217,7 @@ <Compile Include="DriverTest\Sql2008DateTime2Test.cs" /> <Compile Include="DriverTest\SqlClientDriverFixture.cs" /> <Compile Include="DriverTest\SqlServerCeDriverFixture.cs" /> + <Compile Include="DynamicProxyTests\InterfaceWithEqualsGethashcodeTests.cs" /> <Compile Include="EngineTest\CallableParserFixture.cs" /> <Compile Include="EngineTest\NativeSQLQueryNonScalarReturnTest.cs" /> <Compile Include="EngineTest\NativeSQLQueryScalarReturnTest.cs" /> @@ -1995,10 +1992,6 @@ <Project>{31C3F0EA-0FED-4A2F-B68D-96CE29844487}</Project> <Name>NHibernate.ByteCode.Castle</Name> </ProjectReference> - <ProjectReference Include="..\NHibernate.ByteCode.LinFu\NHibernate.ByteCode.LinFu.csproj"> - <Project>{8289D6AD-9714-42D3-A94D-D4D9814D1281}</Project> - <Name>NHibernate.ByteCode.LinFu</Name> - </ProjectReference> <ProjectReference Include="..\NHibernate.DomainModel\NHibernate.DomainModel.csproj"> <Project>{5C649B55-1B3F-4C38-9998-1B043E94A244}</Project> <Name>NHibernate.DomainModel</Name> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |