From: Richard B. <rb...@us...> - 2004-10-31 23:08:47
|
Update of /cvsroot/jcframework/Nunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11585 Modified Files: AtomsFramework.xml Nunit_AtomsFramework.vbproj Log Message: Tests for lazy loading of objects in associations. Index: Nunit_AtomsFramework.vbproj =================================================================== RCS file: /cvsroot/jcframework/Nunit/Nunit_AtomsFramework.vbproj,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- Nunit_AtomsFramework.vbproj 25 Oct 2004 07:14:12 -0000 1.11 +++ Nunit_AtomsFramework.vbproj 31 Oct 2004 23:08:35 -0000 1.12 @@ -80,6 +80,16 @@ HintPath = "..\..\..\Program Files\NUnit 2.2\bin\nunit.framework.dll" AssemblyFolderKey = "hklm\dn\nunit.framework" /> + <Reference + Name = "System.Drawing" + AssemblyName = "System.Drawing" + HintPath = "..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Drawing.dll" + /> + <Reference + Name = "System.Windows.Forms" + AssemblyName = "System.Windows.Forms" + HintPath = "..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Windows.Forms.dll" + /> </References> <Imports> <Import Namespace = "Microsoft.VisualBasic" /> @@ -195,6 +205,11 @@ BuildAction = "Compile" /> <File + RelPath = "StandardClasses\LazyEmployee.vb" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "StandardClasses\NonInheritedRetreiveCriteria.vb" SubType = "Code" BuildAction = "Compile" Index: AtomsFramework.xml =================================================================== RCS file: /cvsroot/jcframework/Nunit/AtomsFramework.xml,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- AtomsFramework.xml 25 Oct 2004 07:14:12 -0000 1.10 +++ AtomsFramework.xml 31 Oct 2004 23:08:35 -0000 1.11 @@ -261,26 +261,41 @@ <association fromClass="NunitTests.InheritedClasses.ManyToManyA" toClass="NunitTests.InheritedClasses.ManyToManyAB" cardinality="OneToMany" target="M2MABCollection" - retrieveAutomatic="True" saveAutomatic="true" deleteAutomatic="true" inverse="false"> + retrieveAutomatic="true" saveAutomatic="true" deleteAutomatic="true" inverse="false"> <entry fromAttribute="GUIDValue" toAttribute="AGuidValue"/> </association> <association fromClass="NunitTests.InheritedClasses.ManyToManyB" toClass="NunitTests.InheritedClasses.ManyToManyAB" cardinality="OneToMany" target="M2MABCollection" - retrieveAutomatic="True" saveAutomatic="true" deleteAutomatic="true" inverse="false"> + retrieveAutomatic="true" saveAutomatic="true" deleteAutomatic="true" inverse="false"> <entry fromAttribute="GUIDValue" toAttribute="BGuidValue"/> </association> <association fromClass="NunitTests.InheritedClasses.ManyToManyAB" toClass="NunitTests.InheritedClasses.ManyToManyA" cardinality="OneToOne" target="M2MA" - retrieveAutomatic="True" saveAutomatic="true" deleteAutomatic="true" inverse="false"> + retrieveAutomatic="true" saveAutomatic="true" deleteAutomatic="true" inverse="false"> <entry fromAttribute="AGuidValue" toAttribute="GUIDValue"/> </association> <association fromClass="NunitTests.InheritedClasses.ManyToManyAB" toClass="NunitTests.InheritedClasses.ManyToManyB" cardinality="OneToOne" target="M2MB" - retrieveAutomatic="True" saveAutomatic="true" deleteAutomatic="true" inverse="false"> + retrieveAutomatic="true" saveAutomatic="true" deleteAutomatic="true" inverse="false"> <entry fromAttribute="BGuidValue" toAttribute="GUIDValue"/> </association> + <class name="LazyEmployee" table="NPEmployee" database="MSA" namespace="NunitTests.StandardClasses"> + <attribute name="Name" column="name" find="true" key="primary"/> + <attribute name="ReportsToName" column="parentname" /> + <attribute name="ReportsTo" /> + <attribute name="Workers" /> + </class> + <association fromClass="NunitTests.StandardClasses.LazyEmployee" toClass="NunitTests.StandardClasses.LazyEmployee" target="ReportsTo" cardinality="OneToOne" + retrieveAutomatic="lazy" saveAutomatic="true" deleteAutomatic="false" inverse="false"> + <entry fromAttribute="ReportsToName" toAttribute="Name"/> + </association> + <association fromClass="NunitTests.StandardClasses.LazyEmployee" toClass="NunitTests.StandardClasses.LazyEmployee" target="Workers" cardinality="OneToMany" + retrieveAutomatic="lazy" saveAutomatic="true" deleteAutomatic="false" inverse="false"> + <entry fromAttribute="Name" toAttribute="ReportsToName"/> + </association> + </map> \ No newline at end of file |