<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Cabana App with a different database schema</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Cabana App with a different database schema</description>
  <pubDate>Tue, 14 Apr 2026 20:20:01 -700</pubDate>
  <lastBuildDate>Fri, 14 Dec 2007 16:53:35 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=605</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Cabana App with a different database schema : The application wizard creates...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=605&amp;PID=2230#2230</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 605<br /><strong>Posted:</strong> 14-Dec-2007 at 4:53pm<br /><br /><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">The application wizard creates a sample model project based on the IdeaBlade tutorial database, but place in a namespace you specify (default is &lt;company&gt;.&lt;app&gt;.Model.&nbsp; This project also contains some common files that need to be present in any Cabana model.&nbsp; Our intention is that you would remove the tutorial-specific entities from this project and replace them with your own data model.&nbsp; This is a little tricky but here are some beginning steps:<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P><OL style="MARGIN-TOP: 0in" =1><LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level1 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In your application solution, start the IdeaBlade object mapper.&nbsp; Verify that it connects properly to the tutorial database.<o:p></o:p></SPAN></FONT> </LI><OL style="MARGIN-TOP: 0in" =a><LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Select all a classes EXCEPT BaseEntity and User.<o:p></o:p></SPAN></FONT> <LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Click delete (the red minus button) and confirm.<o:p></o:p></SPAN></FONT> <LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Save the model and exit the object mapper</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></LI></OL><LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level1 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In the Model project: <o:p></o:p></SPAN></FONT><OL style="MARGIN-TOP: 0in" =a><LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Delete or exclude TitleOfCourtesy.cs.<o:p></o:p></SPAN></FONT> <LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Delete or exclude AuditArgs.cs, AuditConfig.cs, and AuditConfigService.cs (in the Common folder)<o:p></o:p></SPAN></FONT> <LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Edit MainPm.cs and delete these two lines in the Initialize() method:<o:p></o:p></SPAN></FONT> </LI></OL></LI></OL><P =Ms&#111;normal style="MARGIN-LEFT: 0.75in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">msManager.DefaultSaveOptions.ExcludeFromPostSaveRefetch =<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT color=blue><SPAN style="COLOR: blue">new</SPAN></FONT> <FONT color=teal><SPAN style="COLOR: teal">List</SPAN></FONT>&lt;<FONT color=teal><SPAN style="COLOR: teal">Type</SPAN></FONT>&gt;(<FONT color=blue><SPAN style="COLOR: blue">new</SPAN></FONT> <FONT color=teal><SPAN style="COLOR: teal">Type</SPAN></FONT>&#091;&#093; { <FONT color=blue><SPAN style="COLOR: blue">typeof</SPAN></FONT>(AuditValue) });<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P><OL style="MARGIN-TOP: 0in" =1 start=3><LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level1 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Edit Source\Foundation\Services\ListConverterService.cs:<o:p></o:p></SPAN></FONT> </LI><OL style="MARGIN-TOP: 0in" =a><LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In the method CreateServiceItemCore() comment or remove all cases except default.<o:p></o:p></SPAN></FONT> <LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Comment or remove all five regions below this method.</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></LI></OL><LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level1 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;Again start the object mapper.<o:p></o:p></SPAN></FONT> </LI><OL style="MARGIN-TOP: 0in" =a><LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Change the data source to point to your application database.<o:p></o:p></SPAN></FONT> <LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Add classes to map to your database tables, adjust properties as necessary.&nbsp; Be sure to map your “User” table that will be used to authenticate or authorize users.<o:p></o:p></SPAN></FONT> <LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Save the model and exit the object mapper.</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></LI></OL><LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level1 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In your&nbsp; model project, Edit your “User” entity:<o:p></o:p></SPAN></FONT> <OL style="MARGIN-TOP: 0in" =a><LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Provide an object (might be the “User” entity itself) that implements IUser.<o:p></o:p></SPAN></FONT> <LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Provide static methods GetUserByCredential() and GetUserByUserLogin() that return an instance of your IUser object.&nbsp; The SecurityUser.cs file from the sample model (still around but excluded from the project) provides an example.<o:p></o:p></SPAN></FONT> </LI></OL></LI></OL><P =Ms&#111;normal style="MARGIN-LEFT: 0.75in"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P><OL style="MARGIN-TOP: 0in" =1 start=6><LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level1 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In your model project, edit LoginManager.cs:<o:p></o:p></SPAN></FONT> <OL style="MARGIN-TOP: 0in" =a><LI =Ms&#111;normal style="COLOR: navy; mso-list: l1 level2 lfo10"><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In the two methods GetUserPasswordIdentity and GetWindowsIdentity(), invoke the appropriate GetUserBy… methods on your “User” entity.<o:p></o:p></SPAN></FONT> </LI></OL></LI></OL><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">These steps may not be complete, but this should get you pretty close to being able to build and run with your model.&nbsp; Obviously, we have some restructuring work to do in the next version of Cabana.<o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P><P =Ms&#111;normal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I’ll be happy to help you through this process.</P><DIV></DIV><DIV></DIV>Hope this helps.<DIV></DIV><DIV>&nbsp;</DIV><DIV>BIll Jensen</DIV><DIV>IdeaBlade</DIV></SPAN></FONT>]]>
   </description>
   <pubDate>Fri, 14 Dec 2007 16:53:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=605&amp;PID=2230#2230</guid>
  </item> 
  <item>
   <title>Cabana App with a different database schema : Hi: I tried to create a new Cabana...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=605&amp;PID=2165#2165</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=192" rel="nofollow">gussabina</a><br /><strong>Subject:</strong> 605<br /><strong>Posted:</strong> 11-Dec-2007 at 10:32pm<br /><br /><P>Hi:</P><P>I tried to create a new Cabana App using my own database...The solution does not compile, as there is some code that expect certain classes (AuditableEntity) and some tables (SecurityUser, AuditValue, etc).</P><P>Do I have to create all these, in order to have an application running?&nbsp; </P><DIV>Regards;</DIV><P>Gus</P>]]>
   </description>
   <pubDate>Tue, 11 Dec 2007 22:32:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=605&amp;PID=2165#2165</guid>
  </item> 
 </channel>
</rss>