<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to QuickStart3Generating</title><link>https://sourceforge.net/p/genielamp/wiki/QuickStart3Generating/</link><description>Recent changes to QuickStart3Generating</description><atom:link href="https://sourceforge.net/p/genielamp/wiki/QuickStart3Generating/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 14 Mar 2013 10:56:17 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/genielamp/wiki/QuickStart3Generating/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage QuickStart3Generating modified by Serguei Tarassov</title><link>https://sourceforge.net/p/genielamp/wiki/QuickStart3Generating/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -17,8 +17,30 @@
 Delete "Class1.cs" automatically created by project wizard and leave project empty.

 ##Generating code##
+
 Execute "build" on modeling project and view output. If there no errors occurred during generation and database creation/updating the output can contains some warning messages. You may suppress them with -w option of spell tool.

+####Persistence layer####
+Some errors may have an incorrect database interactive SQL utility parameters as source (see SQL Server Genie configuration in ["QuickStart.Project.xml"](QuickStart2Modeling)). In this example we use connection with integrated security (log on as current Windows user) to default instance of SQL Server on your PC:
+
+~~~~~~~~~~
+sqlcmd -b -S localhost -i %FILE_NAME%
+~~~~~~~~~~
+
+When you use SQL Server Express, the instance by default is "SQLExpress" so 
+
+~~~~~~~~~~
+sqlcmd -b -S .\SQLExpress -i %FILE_NAME%
+~~~~~~~~~~
+
+In other cases check it and modify if need.
+
+When modeling project is successfully built the database will be created:
+[[img src="mssql_created_db.png" alt="SQL Server database generated"]]
+
+[SQL Server Genie](SQL Server genie) generates 3 files. UPD_QuickStart.sql is used to create or update database catalog. Be aware that updating will add new tables or columns only. Delete objects from database manually if need.
+
+####Domain layer####
 As we defined in GL project configuration, domain layer files are generated in "Domain" directory. Then we add these files to NHibernate domain project:

  * DomainSetup.cs
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serguei Tarassov</dc:creator><pubDate>Thu, 14 Mar 2013 10:56:17 -0000</pubDate><guid>https://sourceforge.netf09c4bb35d57fffeddaa5998f5c4a8701438ae53</guid></item><item><title>WikiPage QuickStart3Generating modified by Serguei Tarassov</title><link>https://sourceforge.net/p/genielamp/wiki/QuickStart3Generating/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -33,3 +33,8 @@
 Now we build domain layer project.

 [[img src="solution_01.png" alt="Solution: modeling + domain"]]
+
+##Configuring builds##
+Uncheck modeling project from automatic build to avoid code regeneration every time when build of entire solution is selected.
+
+[[img src="config_manager_01.png" alt="Solution: build configuraion"]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serguei Tarassov</dc:creator><pubDate>Mon, 11 Mar 2013 16:15:06 -0000</pubDate><guid>https://sourceforge.net8f10a1249696d5af589bacfa3a8016433584483d</guid></item><item><title>WikiPage QuickStart3Generating modified by Serguei Tarassov</title><link>https://sourceforge.net/p/genielamp/wiki/QuickStart3Generating/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,4 +1,4 @@
-#Quick start 3. Generating code#
+#Quick start 3. Generating and building code#

 ##Configuring build of modeling project##
 We need to change some project properties to generate code from Visual Studio. Select "All configuration" and clear all settings on the "NMake" page. Then add spell tool calling as "Build command line". For example:
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serguei Tarassov</dc:creator><pubDate>Mon, 11 Mar 2013 16:04:24 -0000</pubDate><guid>https://sourceforge.netd774d6fc53a567e81f4c233565d41304c95bba90</guid></item><item><title>WikiPage QuickStart3Generating modified by Serguei Tarassov</title><link>https://sourceforge.net/p/genielamp/wiki/QuickStart3Generating/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -7,12 +7,12 @@
 D:\Projects\GenieLamp\Bin\Release\GenieLamp.Spell.exe -i QuickStart.Project.xml
 ~~~~~~~~~~

-[[img src=" modeling_project_props.png" alt="Modeling project properties"]]
+[[img src="modeling_project_props.png" alt="Modeling project properties"]]

 ##Add domain layer project##
 Now add domain layer class library project to solution.

-[[img src=" modeling_project_props.png" alt="Modeling project properties"]]
+[[img src="create_project_domain.png" alt="Creating domain project"]]

 Delete "Class1.cs" automatically created by project wizard and leave project empty.

@@ -32,3 +32,4 @@

 Now we build domain layer project.

+[[img src="solution_01.png" alt="Solution: modeling + domain"]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serguei Tarassov</dc:creator><pubDate>Mon, 11 Mar 2013 16:03:26 -0000</pubDate><guid>https://sourceforge.neta8366fbeb95d54b57cada124907ac608314eb6c2</guid></item><item><title>WikiPage QuickStart3Generating modified by Serguei Tarassov</title><link>https://sourceforge.net/p/genielamp/wiki/QuickStart3Generating/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -20,10 +20,11 @@
 Execute "build" on modeling project and view output. If there no errors occurred during generation and database creation/updating the output can contains some warning messages. You may suppress them with -w option of spell tool.

 As we defined in GL project configuration, domain layer files are generated in "Domain" directory. Then we add these files to NHibernate domain project:
-* DomainSetup.cs
-* DomainSupport.cs
-* QuickStart.Domain.cs
-* QuickStart.Domain.hbm.xml
+
+ * DomainSetup.cs
+ * DomainSupport.cs
+ * QuickStart.Domain.cs
+ * QuickStart.Domain.hbm.xml

 Make "QuickStart.Domain.hbm.xml" an embedded resource (file properties, "build action" then select "embedded resource").

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serguei Tarassov</dc:creator><pubDate>Mon, 11 Mar 2013 16:00:48 -0000</pubDate><guid>https://sourceforge.neta9e331dbc318c237c30b0de33d0cbc773ef3250b</guid></item><item><title>WikiPage QuickStart3Generating modified by Serguei Tarassov</title><link>https://sourceforge.net/p/genielamp/wiki/QuickStart3Generating/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,33 @@
 #Quick start 3. Generating code#

-We need to change some project properties to generate code from Visual Studio. Select "All configuration" and clear all settings on the "NMake" page. Then add GenieLamp.Spell.exe call as "Build command line". For example:
+##Configuring build of modeling project##
+We need to change some project properties to generate code from Visual Studio. Select "All configuration" and clear all settings on the "NMake" page. Then add spell tool calling as "Build command line". For example:

 ~~~~~~~~~~
 D:\Projects\GenieLamp\Bin\Release\GenieLamp.Spell.exe -i QuickStart.Project.xml
 ~~~~~~~~~~

+[[img src=" modeling_project_props.png" alt="Modeling project properties"]]
+
+##Add domain layer project##
+Now add domain layer class library project to solution.
+
+[[img src=" modeling_project_props.png" alt="Modeling project properties"]]
+
+Delete "Class1.cs" automatically created by project wizard and leave project empty.
+
+##Generating code##
+Execute "build" on modeling project and view output. If there no errors occurred during generation and database creation/updating the output can contains some warning messages. You may suppress them with -w option of spell tool.
+
+As we defined in GL project configuration, domain layer files are generated in "Domain" directory. Then we add these files to NHibernate domain project:
+* DomainSetup.cs
+* DomainSupport.cs
+* QuickStart.Domain.cs
+* QuickStart.Domain.hbm.xml
+
+Make "QuickStart.Domain.hbm.xml" an embedded resource (file properties, "build action" then select "embedded resource").
+
+Add NHibernate references to project (NHibernate and IesiCollection assemblies).
+
+Now we build domain layer project.
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serguei Tarassov</dc:creator><pubDate>Mon, 11 Mar 2013 15:59:41 -0000</pubDate><guid>https://sourceforge.net6992418e87b2a04424352d223ea377cb437a1ebc</guid></item><item><title>WikiPage QuickStart3Generating modified by Serguei Tarassov</title><link>https://sourceforge.net/p/genielamp/wiki/QuickStart3Generating/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="quick-start-3-generating-code"&gt;Quick start 3. Generating code&lt;/h1&gt;
&lt;p&gt;We need to change some project properties to generate code from Visual Studio. Select "All configuration" and clear all settings on the "NMake" page. Then add GenieLamp.Spell.exe call as "Build command line". For example:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="n"&gt;D&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="n"&gt;Projects&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="n"&gt;GenieLamp&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="n"&gt;Bin&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="n"&gt;Release&lt;/span&gt;&lt;span class="o"&gt;\&lt;/span&gt;&lt;span class="n"&gt;GenieLamp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Spell&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exe&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nb"&gt;i&lt;/span&gt; &lt;span class="n"&gt;QuickStart&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Project&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xml&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Serguei Tarassov</dc:creator><pubDate>Mon, 11 Mar 2013 15:41:44 -0000</pubDate><guid>https://sourceforge.net02b5be04692cd01b3059c036eb0e06b5ce55fce4</guid></item></channel></rss>