[mapguide-commits] r4926 - in sandbox/maestro-2.5: OSGeo.MapGuide.MaestroAPI/Schemas Thirdparty/Xsd2Code/Xsd2Code.Console Thirdparty/Xsd2Code/Xsd2Code.Console/Resources Thirdparty/Xsd2Code/Xsd2Code.Library

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue May 25 01:51:32 EDT 2010


Author: jng
Date: 2010-05-25 01:51:31 -0400 (Tue, 25 May 2010)
New Revision: 4926

Modified:
   sandbox/maestro-2.5/OSGeo.MapGuide.MaestroAPI/Schemas/generate.bat
   sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/
   sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/EntryPoint.cs
   sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/Resources/Help.txt
   sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/Xsd2Code.csproj
   sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Library/
Log:
Update internal copy of Xsd2Code with support for lazy loading switch.

Modified: sandbox/maestro-2.5/OSGeo.MapGuide.MaestroAPI/Schemas/generate.bat
===================================================================
--- sandbox/maestro-2.5/OSGeo.MapGuide.MaestroAPI/Schemas/generate.bat	2010-05-25 00:52:54 UTC (rev 4925)
+++ sandbox/maestro-2.5/OSGeo.MapGuide.MaestroAPI/Schemas/generate.bat	2010-05-25 05:51:31 UTC (rev 4926)
@@ -1,5 +1,5 @@
 SET NS_ROOT=OSGeo.MapGuide.ObjectModels
-SET XSD_OPTS=/c BindingList /is+ /cl+ /db+ /sc+ /xa+ /if+ /hp+
+SET XSD_OPTS=/c BindingList /is+ /cl+ /db+ /sc+ /xa+ /hp+ /if- /ll-
 SET GEN_ROOT=..\..\Generated
 xsd2code.exe ApplicationDefinition-1.0.0.xsd %GEN_ROOT%\ApplicationDefinition-1.0.0.cs /n %NS_ROOT%.ApplicationDefinition %XSD_OPTS%
 xsd2code.exe ApplicationDefinitionInfo-1.0.0.xsd %GEN_ROOT%\ApplicationDefinitionInfo-1.0.0.cs /n %NS_ROOT%.ApplicationDefinition %XSD_OPTS%


Property changes on: sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console
___________________________________________________________________
Added: svn:ignore
   + bin
obj


Modified: sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/EntryPoint.cs
===================================================================
--- sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/EntryPoint.cs	2010-05-25 00:52:54 UTC (rev 4925)
+++ sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/EntryPoint.cs	2010-05-25 05:51:31 UTC (rev 4926)
@@ -281,6 +281,14 @@
                         generatorParams.HidePrivateFieldInIde = false;
                         break;
 
+                    case "/ll":
+                    case "/ll+":
+                        generatorParams.EnableLasyLoading = true;
+                        break;
+                    case "/ll-":
+                        generatorParams.EnableLasyLoading = false;
+                        break;
+
                     case "/s":
                     case "/s+":
                     case "/is":

Modified: sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/Resources/Help.txt
===================================================================
--- sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/Resources/Help.txt	2010-05-25 00:52:54 UTC (rev 4925)
+++ sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/Resources/Help.txt	2010-05-25 05:51:31 UTC (rev 4926)
@@ -56,6 +56,9 @@
     /if[+]                              - Enable initialization of fields (default)
     /if-                                - Disable all field initialization constructor or lazy
     
+    /ll[+]								- Enable Lazy Loading. Initialization of fields (/if) must be enabled
+    /ll[-]								- Do not enable Lazy Loading (default)
+    
     /eit[+]                             - Exclude types from included Schemas in generation
     /eit-                               - Generate types from included schemas (default)
     

Modified: sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/Xsd2Code.csproj
===================================================================
--- sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/Xsd2Code.csproj	2010-05-25 00:52:54 UTC (rev 4925)
+++ sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Console/Xsd2Code.csproj	2010-05-25 05:51:31 UTC (rev 4926)
@@ -48,7 +48,7 @@
     <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <OutputPath>bin\Debug\</OutputPath>
+    <OutputPath>..\..\..\OSGeo.MapGuide.MaestroAPI\Schemas\</OutputPath>
     <AllowUnsafeBlocks>false</AllowUnsafeBlocks>
     <BaseAddress>285212672</BaseAddress>
     <CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
@@ -106,11 +106,6 @@
     <Reference Include="System.Xml">
       <Name>System.XML</Name>
     </Reference>
-    <ProjectReference Include="..\Xsd2Code.Library\Xsd2Code.Library.csproj">
-      <Name>Xsd2Code.Library</Name>
-      <Project>{1B59FB12-699C-4927-ACA3-D7F0E0F79100}</Project>
-      <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
-    </ProjectReference>
   </ItemGroup>
   <ItemGroup>
     <Content Include="App.ico" />


Property changes on: sandbox/maestro-2.5/Thirdparty/Xsd2Code/Xsd2Code.Library
___________________________________________________________________
Added: svn:ignore
   + bin
obj




More information about the mapguide-commits mailing list