<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>WilsonDotNet Forums : Data Related</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=rss&amp;id=21&amp;key=eqV7N6b1KKfFHBVV%2b0Vqrg%3d%3d</link><description>WilsonDotNet Forums : Data Related</description><item><title>Paul: paid but cannot download - URGENT</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2568&amp;key=%2fDxgXBof1YgIh6F3Z4n9vg%3d%3d&amp;post=7699</link><pubDate>Tue, 14 Aug 2007 01:04:42 GMT</pubDate><description>&lt;P&gt;It should be fixed now -- hosting provider redid drives and I hadn't thought about how that would affect this one thing.&lt;/P&gt;
&lt;P&gt;Thanks, Paul Wilson&lt;/P&gt;</description></item><item><title>Paul: paid but cannot download - URGENT</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2568&amp;key=%2fDxgXBof1YgIh6F3Z4n9vg%3d%3d&amp;post=7698</link><pubDate>Mon, 13 Aug 2007 22:14:22 GMT</pubDate><description>&lt;P&gt;It looks like I need to fix something -- sorry about that.&amp;nbsp; I'll try to get it this evening, in the meantime you can mail me: Paul at WilsonDotNet.com.&lt;/P&gt;
&lt;P&gt;Thanks, Paul Wilson&lt;/P&gt;</description></item><item><title>Paul: paid but cannot download - URGENT</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2568&amp;key=%2fDxgXBof1YgIh6F3Z4n9vg%3d%3d&amp;post=7696</link><pubDate>Mon, 13 Aug 2007 09:35:36 GMT</pubDate><description>I go to subscriber downloads and try to download &lt;a href="WilsonORMapperProd.aspx"&gt;WilsonORMapperProd.zip&lt;/a&gt;, but I get redirected to:&lt;br&gt;http://www.wilsondotnet.com/?aspxerrorpath=/Downloads/WilsonORMapperProd.aspx&lt;br&gt;&lt;br&gt;This is really important for us, because we ship the new version in two days and we already ported the backend to ORMapper.. We're stuck...&lt;br&gt;&lt;br&gt;Thank you!&lt;br&gt;&lt;br&gt;</description></item><item><title>Wilson ORMapper VS Linq to SQL</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2563&amp;key=cpH73L6cxVWuzX2klJHDxw%3d%3d&amp;post=7684</link><pubDate>Fri, 27 Jul 2007 11:03:30 GMT</pubDate><description>&lt;P&gt;I have been looking into using Linq to SQL, but find it very hard to fit this technology into a conventional n-tier application, with a Business Logic Layer etc. Hence, until I can crack that, I'm using the trusty Wilson ORMapper. My temptation is to carry on using the ORMapper until Linq to Entities comes out in 2008. Has anyone got any suggestions on how to plan ahead, making applications future proof, to transition between the mappers, and keep a layered design to apps?&lt;/P&gt;
&lt;P&gt;Cheer, Andy&lt;/P&gt;</description></item><item><title>Disconnect</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2382&amp;key=9%2bfVJKJ5sMBYhlJgcrAoqA%3d%3d&amp;post=7258</link><pubDate>Tue, 31 Oct 2006 14:49:40 GMT</pubDate><description>The ORMapper does not require much from your classes -- i.e. you can use a base class or not, you can use properties or fields, you can use the IObjectHelper or not, etc.&amp;nbsp; That means that you can create your classes and mappings in just about any way -- i.e. manually by hand, with my ORHelper app, or with some of the CodeSmith templates others have created.&amp;nbsp; I don't use the CodeSmith templates -- I use my ORHelper to get a quick start and then tweak things by hand, thus you won't see my examples looking the same as the CodeSmith generated files you may create.&amp;nbsp; I think its mostly a question of style which method you use -- in other words, I would not include the CodeSmith templates if they did not seem to be good enough, and certainly many do use them with success, but they are not my personal style so I don't use them myself.&amp;nbsp; And by the way, subscribing gets you the production dlls and the source code, but don't expect any more documentation.&amp;nbsp; :)&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>Disconnect</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2382&amp;key=9%2bfVJKJ5sMBYhlJgcrAoqA%3d%3d&amp;post=7242</link><pubDate>Tue, 31 Oct 2006 14:37:46 GMT</pubDate><description>&lt;P&gt;I am trying to evaluate your product and I don't understand the disconnect between your examples and the files generated by the WORMFramework cst files.&lt;/P&gt;
&lt;P&gt;Can you please explain what their relationship is. &lt;/P&gt;
&lt;P&gt;It appears to me that the demo's entity classes are all hand coded instead of generated by the mapper. Am I missing something?&lt;/P&gt;
&lt;P&gt;My generated code against my database has many more files than your example.&lt;/P&gt;
&lt;P&gt;It hase base classes for the entities, it has base objects for the collections. None of these appear in your demo or documentation.&lt;/P&gt;
&lt;P&gt;If I purchase your product will I be getting more detailed information about these things?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Using store procedures.</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2340&amp;key=Q9gGSH58uZvE1wWiW1Akjw%3d%3d&amp;post=7185</link><pubDate>Tue, 26 Sep 2006 09:04:59 GMT</pubDate><description>I'm going to assume you are asking about the ORMapper -- note that it has its own forums at &lt;a href="http://www.ORMapper.net/Forums"&gt;http://www.ORMapper.net/Forums&lt;/a&gt;.&amp;nbsp; Anyhow, this scenario is supported by the ORMapper.&amp;nbsp; The select from a view is the easiest part, as the mapper doesn't much care if the "table" is a view.&amp;nbsp; As for the inserts, updates, and deletes, the mapping file has optional settings for insertSP, updateSP, and deleteSP, and you can specify the parameter for the attributes.&amp;nbsp; See the &lt;a href="http://ormapper.net/Wiki/Default.aspx?part=76&amp;amp;action=wiki&amp;amp;id=1&amp;amp;key=WQR%2ffvFkC%2fYfQb%2bLJS2C7Q%3d%3d"&gt;wiki&lt;/a&gt; for the mapping file syntax, and there is a very minimal example &lt;a href="http://ormapper.net/Examples/MoreProcs.aspx"&gt;here&lt;/a&gt;.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>Using store procedures.</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2340&amp;key=Q9gGSH58uZvE1wWiW1Akjw%3d%3d&amp;post=7173</link><pubDate>Tue, 26 Sep 2006 08:49:23 GMT</pubDate><description>&lt;P&gt;Supose I had a situation where I wanted to use a view to select, a procedure to delete and another procedure to create and update, how would I do it?&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The reason I am looking into this is for cases where we have some embeded logic in the procedure which does some business logic validation before performing the final insert or update.&amp;nbsp; Does the mapping file allow me to map members to procedure parameters?&lt;/P&gt;</description></item><item><title>Working with Sql Server 2005 XML Type</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2295&amp;key=dagfdYKjIDWQ5l7NpyMnnA%3d%3d&amp;post=7049</link><pubDate>Thu, 24 Aug 2006 11:07:33 GMT</pubDate><description>Not currently, but its certainly something I'll consider once I find the time to finish what I do have planned -- and finding time is by far the big problem right now.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>Working with Sql Server 2005 XML Type</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2295&amp;key=dagfdYKjIDWQ5l7NpyMnnA%3d%3d&amp;post=7048</link><pubDate>Wed, 23 Aug 2006 21:58:47 GMT</pubDate><description>&lt;P&gt;Any plans to support reading in a xml type directly into a SqlXml property as opposed to a string property as it does currently?&lt;/P&gt;
&lt;P&gt;&lt;B&gt;Thanks in advance!&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;Marty Hope&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Oracle CLOB and BLOB types</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2110&amp;key=i%2bvM4uBWjIF%2fOp7VA7891g%3d%3d&amp;post=6558</link><pubDate>Thu, 27 Apr 2006 11:31:13 GMT</pubDate><description>&lt;p class="MsoNormal"&gt;Hi, &lt;br&gt;
&lt;br&gt;
This post is just to share some knowledge, since, I have spend some time with
this data types in Oracle.&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;I am using VS2005 and &lt;/p&gt;



&lt;p class="MsoNormal"&gt;For CLOBs all you have to do is to denote in the mapping
file that the datatype of your field/property is System.String&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;For BLOB the type is System.Object but be careful that this
property within your created data objects should store byte arrays.&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Both types seems to work perfectly with the O/R mapper&lt;/p&gt;

mk&lt;br&gt;</description></item><item><title>Converting from NHibernate to ORMapper to ObjectSpaces</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2066&amp;key=vPzuF9bq6il7EWms9xDc1w%3d%3d&amp;post=6434</link><pubDate>Thu, 06 Apr 2006 22:19:39 GMT</pubDate><description>Hmmm, well in that case, I would need more information about what this would involve, including where to find more information since I'm obviously unfamiliar with this.&amp;nbsp; I would especially need to obtain information about how to handle the cases where I do have the contributions of others.&amp;nbsp; My honest guess is that there is still going to be far too much cost on my end, whether it be financial or documentation, but I'm certainly willing to look at it a little closer if I can get more information.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>Converting from NHibernate to ORMapper to ObjectSpaces</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2066&amp;key=vPzuF9bq6il7EWms9xDc1w%3d%3d&amp;post=6433</link><pubDate>Thu, 06 Apr 2006 22:12:44 GMT</pubDate><description>They would probably pay.&amp;nbsp; &lt;A href="mailto:strongpoint.spam@comcast.net"&gt;strongpoint.spam@comcast.net&lt;/A&gt;</description></item><item><title>Converting from NHibernate to ORMapper to ObjectSpaces</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2066&amp;key=vPzuF9bq6il7EWms9xDc1w%3d%3d&amp;post=6428</link><pubDate>Thu, 06 Apr 2006 16:55:30 GMT</pubDate><description>There's no way I could issue a legally binding indemnification like that for a couple of reasons.&amp;nbsp; First and foremost, that type of statement would require some significant insurance to protect me from any legal actions that were raised by someone unscrupulous enough to make counter-claims.&amp;nbsp; And that has nothing to do with whether or not the code actually is mine or not -- its all about money, insurance, and legal crap that I want no part of since I only make a little extra money by selling things for $50.&amp;nbsp; Another problem is that there are parts of my ORMapper that are other people's code -- the only significant place this occurs is the OPath engine that has been donated by Jeff Lanning, but there are other smaller pieces contributed by others also.&amp;nbsp; That shouldn't be a problem for most people, and its no different than most other products, especially open source ones, but it would be nonetheless a tricky twist that would make it more difficult, and financially more expensive, to providing such a statement.&amp;nbsp; While I certainly hate to hear that this might prevent you from using my ORMapper, there's simply no way I can justify the costs that would be required to give you what you are asking for, regardless of whether or not I feel like such a statement would be true in fact.&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>Converting from NHibernate to ORMapper to ObjectSpaces</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2066&amp;key=vPzuF9bq6il7EWms9xDc1w%3d%3d&amp;post=6424</link><pubDate>Thu, 06 Apr 2006 16:43:51 GMT</pubDate><description>&lt;P&gt;I knew I'd learn something here!&amp;nbsp; Thanks for the&amp;nbsp;info on&amp;nbsp;ObjectSpaces.&amp;nbsp; I have a contractural question for you.&amp;nbsp; For considering using ORMapper long term, my client would need a statement indemnifying them against the use of ORMapper code.&amp;nbsp; For instance, protection against someone saying that some piece of ORMapper code is theirs.&lt;/P&gt;
&lt;P&gt;Any chance of this.&amp;nbsp; Feel free to send me an email on this.&lt;/P&gt;
&lt;P&gt;&lt;A href="mailto:strongpoint.spam@comcast.net"&gt;strongpoint.spam@comcast.net&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Converting from NHibernate to ORMapper to ObjectSpaces</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2066&amp;key=vPzuF9bq6il7EWms9xDc1w%3d%3d&amp;post=6421</link><pubDate>Thu, 06 Apr 2006 11:58:09 GMT</pubDate><description>I've haven't heard of many having legal concerns with the pretty standard open source licenses that the big projects, like Hibernate (and NHibernate) use, but I suppose some lawyers are going to be concerned about anything.&amp;nbsp; So if they have a concern about standard licenses, then I would bet they would have a concern over mine too, since its totally devoid of any legalese at all, instead basically just being a simple English gentlemen's agreement.&amp;nbsp; :)&amp;nbsp; Finally, you're more then a little behind if you're still thinking there will ever be an ObjectSpaces from Microsoft -- its been officially killed and replaced by DLinq for some time now, which is maybe coming in 2007.&amp;nbsp; That means that my original strategy of trying to align to ObjectSpaces is now not very useful, although I believe OPath is still part of WinFS -- but DLinq itself is so far in the previews very much different (and ugly if you ask me).&lt;br&gt;&lt;br&gt;Thanks, Paul Wilson&lt;br&gt;</description></item><item><title>Converting from NHibernate to ORMapper to ObjectSpaces</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=2066&amp;key=vPzuF9bq6il7EWms9xDc1w%3d%3d&amp;post=6420</link><pubDate>Thu, 06 Apr 2006 11:50:42 GMT</pubDate><description>&lt;P&gt;Hi Paul,&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P&gt;I recently recommended NHibernate for a client who sells their software.&amp;nbsp; Their lawyers recently vetoed NHibernate due to some scary ambiguities in the license agreement.&lt;/P&gt;
&lt;P&gt;Long story short, we have a substantial amount of code that uses NHibernate that we would like to salvage.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;I’m currently thinking that we could semi-easily convert our stuff over to your ORMapper, and possibly convert over to ObjectSpaces when (if) it is ready.&lt;/P&gt;
&lt;P&gt;Do you have any thoughts on this strategy? &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Stupic Newbie ConnectionString Question</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1937&amp;key=rNrv1VFybwW5EvyIcnTosQ%3d%3d&amp;post=6054</link><pubDate>Thu, 23 Feb 2006 05:26:53 GMT</pubDate><description>If the connection string itself doesn't help, then you'll need to send me the code, mappings, and db/script in a zip via email since the stack trace in this case seems to point to your code.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>Stupic Newbie ConnectionString Question</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1937&amp;key=rNrv1VFybwW5EvyIcnTosQ%3d%3d&amp;post=6053</link><pubDate>Thu, 23 Feb 2006 05:23:49 GMT</pubDate><description>Something like this:&lt;br /&gt;
&lt;br /&gt;
Server=TWIN\SQLEXPRESS;DataBase=NTA;Integrated Security=SSPI;&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>Stupic Newbie ConnectionString Question</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1937&amp;key=rNrv1VFybwW5EvyIcnTosQ%3d%3d&amp;post=6052</link><pubDate>Wed, 22 Feb 2006 20:14:44 GMT</pubDate><description>Paul,&lt;br /&gt;
&lt;br /&gt;
Here's the exception detail from VB 2005 Express Edition:&lt;br /&gt;
&lt;br /&gt;
System.TypeInitializationException was unhandled&lt;br /&gt;
  Message=&amp;quot;The type initializer for 'vbripper.DataManager' threw an exception.&amp;quot;&lt;br /&gt;
  Source=&amp;quot;vbripper&amp;quot;&lt;br /&gt;
  TypeName=&amp;quot;vbripper.DataManager&amp;quot;&lt;br /&gt;
  StackTrace:&lt;br /&gt;
       at vbripper.GenresWORM.RetrieveQuery(ObjectQuery query) in C:\Software Updates\Ripper\Small Coder\Fourth Try\vbripper\vbripper\GenresWORM.vb:line 260&lt;br /&gt;
       at vbripper.GenresWORM.RetrieveAll(String sortClause) in C:\Software Updates\Ripper\Small Coder\Fourth Try\vbripper\vbripper\GenresWORM.vb:line 65&lt;br /&gt;
       at vbripper.GenresWORM.RetrieveAll() in C:\Software Updates\Ripper\Small Coder\Fourth Try\vbripper\vbripper\GenresWORM.vb:line 58&lt;br /&gt;
       at vbripper.CDRead.CreateAudioDiscFolder(CDDrive&amp;amp; current_drive, Boolean&amp;amp; bOver) in C:\Software Updates\Ripper\Small Coder\Fourth Try\vbripper\vbripper\CDRead.vb:line 116&lt;br /&gt;
       at vbripper.CDRead.ReadAudioCD(CDDrive&amp;amp; current_drive) in C:\Software Updates\Ripper\Small Coder\Fourth Try\vbripper\vbripper\CDRead.vb:line 432&lt;br /&gt;
       at vbripper.CDRead.ReadCDDisc(CDDrive&amp;amp; current_drive) in C:\Software Updates\Ripper\Small Coder\Fourth Try\vbripper\vbripper\CDRead.vb:line 189&lt;br /&gt;
       at vbripper.FormDevChange.ReadCD(Object stateInfo) in C:\Software Updates\Ripper\Small Coder\Fourth Try\vbripper\vbripper\FormDevChange.vb:line 187&lt;br /&gt;
       at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)&lt;br /&gt;
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)&lt;br /&gt;
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)&lt;br /&gt;
</description></item><item><title>Stupic Newbie ConnectionString Question</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1937&amp;key=rNrv1VFybwW5EvyIcnTosQ%3d%3d&amp;post=6051</link><pubDate>Wed, 22 Feb 2006 20:10:34 GMT</pubDate><description>Paul,&lt;br /&gt;
&lt;br /&gt;
Thanks.  I'll give that a shot.  If I wanted to do it with a trusted connection and without changing the registry settings, what would the connection string look like?&lt;br /&gt;
&lt;br /&gt;
Michael</description></item><item><title>Stupic Newbie ConnectionString Question</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1937&amp;key=rNrv1VFybwW5EvyIcnTosQ%3d%3d&amp;post=6048</link><pubDate>Wed, 22 Feb 2006 18:51:30 GMT</pubDate><description>Hi Michael:&lt;br /&gt;
&lt;br /&gt;
Without seeing the exact exception and stack trace, I can only guess.  My understanding is that SqlExpress defaults to trusted connections only and will not allow you to specify a username.  Jacob Carpenter suggested modifying the following registry key from 1 to 2 in order to enable sql users:&lt;br /&gt;
&lt;br /&gt;
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\LoginMode&lt;br /&gt;
&lt;br /&gt;
(http://jacobcarpenter.com/mLog/ViewEntry.aspx?ID=60)&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>Stupic Newbie ConnectionString Question</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1937&amp;key=rNrv1VFybwW5EvyIcnTosQ%3d%3d&amp;post=6047</link><pubDate>Wed, 22 Feb 2006 18:30:00 GMT</pubDate><description>HI,&lt;br /&gt;
&lt;br /&gt;
I'm trying to add database connectivity to a VB app that someone else wrote.  I'm hoping to use WORM to help build out the basis for what I want to do.  Unfortunately, I can't even seem to do the simple stuff: connect to the database.  &lt;br /&gt;
&lt;br /&gt;
The app has an app.config file and I tried added the following lines based on what I found in the doco and forum posts:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;add key=&amp;quot;WORM.ConnectionString&amp;quot; value=&amp;quot;Server=TWIN\SQLEXPRESS;DataBase=NTA;UID=NTA_Admin;PWD=xxxxxx&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;add key=&amp;quot;WORM.MappingFilePath&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt; &lt;br /&gt;
&amp;lt;add key=&amp;quot;WORM.ProviderType&amp;quot; value=&amp;quot;MsSql&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;add key=&amp;quot;WORM.ApplicationType&amp;quot; value=&amp;quot;Win&amp;quot; /&amp;gt; &lt;br /&gt;
&lt;br /&gt;
I'm running SQL Server 2005 Express and have created a database called NTA with a user of NTA_Admin.  But I just can't connect.  I keep getting: {&amp;quot;The type initializer for 'vbripper.DataManager' threw an exception.&amp;quot;}  Reading through the other lines I'm pretty sure it's choking on the connection string.&lt;br /&gt;
&lt;br /&gt;
Any ideas what I'm doing wrong?&lt;br /&gt;
&lt;br /&gt;
Any help would be greatly appreciated!!!&lt;br /&gt;
&lt;br /&gt;
Michael </description></item><item><title>Migrate asp.net site to other provider</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1887&amp;key=wCBVlgqa7iXIqC8FAKKz3g%3d%3d&amp;post=5902</link><pubDate>Tue, 07 Feb 2006 17:09:58 GMT</pubDate><description>Did you recompile the project with that change and deploy the updated dll?  If that doesn't help, then you'll need to give more details -- or maybe pay someone like myself.  :)&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>Migrate asp.net site to other provider</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1887&amp;key=wCBVlgqa7iXIqC8FAKKz3g%3d%3d&amp;post=5901</link><pubDate>Tue, 07 Feb 2006 15:31:24 GMT</pubDate><description>Hi, i have a portal developed by some company with the source code, and Im changing hosts but I need to change all of the database connection information, I checked the web.config file and it doesnt have any connection string information, but on the source code there is a file called config.cs, I modified the file in Visual Studio with the correct info, but I just cannot find a way to make it work, could you help me out. Could you help me out. Thanks in advance</description></item><item><title>GridView</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1841&amp;key=mWMXgPCX5Qg1P4RYOwxNbw%3d%3d&amp;post=5734</link><pubDate>Thu, 19 Jan 2006 05:50:09 GMT</pubDate><description>I wish I had time for creating examples of everything, but honestly I'm not even keeping up with all the questions very well lately.  Also in this case, what you're looking for is not really anything specific to O/R Mappers -- it is instead just OO design.  So assuming you have the one-to-many case for now, then first make sure the Address object contains an instance of the associated Contact object (using many-to-one relationship in the ORMapepr).  It might be sufficient at that point to simply expose the Contact as a property and have the Contact class override the ToString method to return a nicely formatted summary of the Contact.  Then when you get your collection of Addresses (not Contacts) and bind them to your grid, that summary of the Contact will automatically show.  If you need more sophistication then you can setup you bindings to have columns associated with Contact.Property for the relevant properties.  Finally, you can even add properties in your Address class to expose the various Contact properties instead of just exposing the Contact as a whole.&lt;br /&gt;
&lt;br /&gt;
Now for the GetXXX&amp;lt;type&amp;gt; methods -- these are .NET v2.0 generics, which you need to get familiar with before they will make sense.  Basically think of them as being the same thing as the GetXXX(typeof(type)) methods, except the resulting collection is a strongly typed collection.  But otherwise the usage of the generic versions are identical to the usage of the other methods -- so yes, the type does need to be defined in the mapping file.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>GridView</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1841&amp;key=mWMXgPCX5Qg1P4RYOwxNbw%3d%3d&amp;post=5733</link><pubDate>Thu, 19 Jan 2006 04:52:58 GMT</pubDate><description>could you give examples of how to do both of these?&lt;br /&gt;
&lt;br /&gt;
Also when you use GetCollection&amp;lt;someObject&amp;gt; or GetObjectSet&amp;lt;someObject&amp;gt; does the &amp;quot;someObject&amp;quot; need to be defined in the mapping file?</description></item><item><title>GridView</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1841&amp;key=mWMXgPCX5Qg1P4RYOwxNbw%3d%3d&amp;post=5728</link><pubDate>Wed, 18 Jan 2006 22:11:24 GMT</pubDate><description>I have a similar issue.&lt;br /&gt;
I have a Person object with a collection of Address's.&lt;br /&gt;
In the mapping file Address a many-to-one relation to Person, and Person has a One-to-many to Address.&lt;br /&gt;
&lt;br /&gt;
In my datagridview I want to show :&lt;br /&gt;
&lt;br /&gt;
First Situation:&lt;br /&gt;
Person.Name, Person.Surname, AddressCollection[0].Street&lt;br /&gt;
(the name and surname of the person plua the street of their first address.)&lt;br /&gt;
&lt;br /&gt;
Second Situation:&lt;br /&gt;
Person.Name, Person.Surname, AddressCollection[i].Street&lt;br /&gt;
(the name and surname and street of ALL the address's for that person - yes name and surname will be repeated if there is more than 1 address.)&lt;br /&gt;
&lt;br /&gt;
How can I do the above?&lt;br /&gt;
</description></item><item><title>GridView</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1841&amp;key=mWMXgPCX5Qg1P4RYOwxNbw%3d%3d&amp;post=5725</link><pubDate>Wed, 18 Jan 2006 17:21:44 GMT</pubDate><description>Well either you have a situation where each contact can have multiple addresses (one-to-many) or you have a situation where each contact has at most one address (and maybe exactly one depending on your design implementation).&lt;br /&gt;
&lt;br /&gt;
If you have the one-to-many case, and you want to see every address without drilling down into a master-detail, then you should be binding to the addresses and not the contacts.  As long as you have a contact property in the address class (a many-to-one &amp;quot;parent&amp;quot; relationship in the mapper) then you will also be able to see the address' contact in that same row.  Of course that means that you will see each contact possibly more than once, but that's simply because you've chosen to see each address and is therefore a matter of your design choices (which only you can decide if thats good or bad).&lt;br /&gt;
&lt;br /&gt;
On the other hand, if you do have only one address, then you should simply have an address property in the contact class and not a collection of addresses.  Internally you may need to have a collection of addresses depending on how you've implemented it, but even in that case you should expose the 0th index address instead of the whole collection.  And of course if there may be no address then make sure you check for that situation since otherwise the 0th index will result in an error.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>GridView</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1841&amp;key=mWMXgPCX5Qg1P4RYOwxNbw%3d%3d&amp;post=5722</link><pubDate>Wed, 18 Jan 2006 07:29:05 GMT</pubDate><description>Hi,&lt;br /&gt;
I am using the ORMAPPER but im running into an issue when i try to bind my gridview control, it contains information about a contact and address information, i would like to be able to show both on the same row. im getting to a point where i can get the contact information alone but im not sure how to reference my address information for each contact in my markup.. if i specify addresses[0].address1 that works if i have only one contact in the grid. but i know there must be a way to do that dynamically so it would know the index by it self.&lt;br /&gt;
Thanks.</description></item><item><title>SQL connectionString</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=39&amp;key=vzwZYsJF6CGk7SqfxNwTqQ%3d%3d&amp;post=5252</link><pubDate>Thu, 10 Nov 2005 04:12:43 GMT</pubDate><description>I've had the same problem with getting the error: &amp;quot;The root element must match the name of the section referencing the file, 'appSettings'&amp;quot;   and finally found out why it was happening in my case.&lt;br /&gt;
&lt;br /&gt;
I'd copied my app.config into the bin\debug folder and renamed it to development.config.  I then added it to my project to edit it, but when I used the Add Existing Item operation, I clicked on Open instead of using the drop down to choose Link File.&lt;br /&gt;
&lt;br /&gt;
The result was that another version of the file was created in the project folder and I ended up editing this one instead of the one in bin\debug.  When running the project, it was using the unedited version in bin\debug which still had all the superfluous stuff from the app.config file that caused the error.&lt;br /&gt;
</description></item><item><title>SQL connectionString</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=39&amp;key=vzwZYsJF6CGk7SqfxNwTqQ%3d%3d&amp;post=5017</link><pubDate>Thu, 20 Oct 2005 02:55:59 GMT</pubDate><description>Without seeing more its hard to say, but keep in mind that web.config is xml and therefore case-sensitive.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>SQL connectionString</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=39&amp;key=vzwZYsJF6CGk7SqfxNwTqQ%3d%3d&amp;post=5011</link><pubDate>Wed, 19 Oct 2005 22:15:48 GMT</pubDate><description>tell me how to join ur forum&lt;br /&gt;
I have put the connection string into the web.config&lt;br /&gt;
file&lt;br /&gt;
and on the aspx.vb page i have declared the connection&lt;br /&gt;
the code i have written on the aspx,vb page is &lt;br /&gt;
dim conn as new sqlcoonection(configurationSettings.appSettings(&amp;quot;connectionString&amp;quot;)&lt;br /&gt;
i have made one function openconnection()&lt;br /&gt;
 the code is&lt;br /&gt;
openConnection()&lt;br /&gt;
if conn.state = connectionState.Closed then conn.open()&lt;br /&gt;
&lt;br /&gt;
at the time of execution of the statement &lt;br /&gt;
conn.open &lt;br /&gt;
it gives error &lt;br /&gt;
connectionString Property is not initialized properly</description></item><item><title>join two tables</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1346&amp;key=aLgOA4Y8K3Kmw38objvODQ%3d%3d&amp;post=4146</link><pubDate>Tue, 26 Jul 2005 12:17:18 GMT</pubDate><description>Hi Bob:&lt;br /&gt;
&lt;br /&gt;
Is this a schema you are forced to work with from someone else, or do you control it?  I ask because unless there are other details you haven't given here, this structure has no rationale.  Instead, price_amt and description should be part of the Books table, and there should be no price_id.  Now having a separate Prices table might make a lot of sense if there can be multiple prices for the same book, but in that case you still won't have a price_id field in the Books table since that implies a single price, instead book_id would be in the Prices table.&lt;br /&gt;
&lt;br /&gt;
If you must have this schema anyhow, then note that an instance of Price must be the parent object, and that an instance of Book will be the child object -- you can of course also enforce that there is only one child object in this case, although the schema itself from what I see doesn't dictate that most likely business fact.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>join two tables</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1346&amp;key=aLgOA4Y8K3Kmw38objvODQ%3d%3d&amp;post=4129</link><pubDate>Thu, 21 Jul 2005 23:47:53 GMT</pubDate><description>Hi,&lt;br /&gt;
&lt;br /&gt;
I have two tables as shown following:&lt;br /&gt;
&lt;br /&gt;
1.	Books:&lt;br /&gt;
   a.	book_id(pk)&lt;br /&gt;
   b.	book_name&lt;br /&gt;
   c.	author_name&lt;br /&gt;
   d.	price_id(fk)&lt;br /&gt;
&lt;br /&gt;
2.	Price:&lt;br /&gt;
   a.	price_id&lt;br /&gt;
   b.	price_amt&lt;br /&gt;
   c.	description&lt;br /&gt;
&lt;br /&gt;
I want to write query for oRMapper so that i can update, insert, and delete the values of the both tables by single where string.&lt;br /&gt;
&lt;br /&gt;
Tanks &lt;br /&gt;
Bob&lt;br /&gt;
&lt;br /&gt;
</description></item><item><title>Performance Issue.</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=166&amp;key=YjwLppOFsbhF1QQyEqdVWg%3d%3d&amp;post=3405</link><pubDate>Thu, 24 Mar 2005 07:23:44 GMT</pubDate><description>Paul,&lt;br /&gt;
&lt;br /&gt;
However using parameterized queries gets rid of the ugliness of dealing with dates and booleans which by default Oracle and SQL Server treat differently (when sending a string representation of the values with the SQL) making code harder to make database independent.&lt;br /&gt;
&lt;br /&gt;
Thanks for the great code,&lt;br /&gt;
DJ</description></item><item><title>Oracle Issues</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1081&amp;key=yTaZJNQfppk7i%2fiFukhi8Q%3d%3d&amp;post=3397</link><pubDate>Wed, 23 Mar 2005 10:15:24 GMT</pubDate><description>Thanks, I'll get it in the next update.</description></item><item><title>Oracle Issues</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1081&amp;key=yTaZJNQfppk7i%2fiFukhi8Q%3d%3d&amp;post=3396</link><pubDate>Wed, 23 Mar 2005 08:46:57 GMT</pubDate><description>Paul,&lt;br /&gt;
&lt;br /&gt;
I modified the GetObjectCount method in Context.cs and it now supports both Oracle and SQL Server.&lt;br /&gt;
&lt;br /&gt;
// Includes GetObjectCount by Ken Muse (http://www.MomentsFromImpact.com)&lt;br /&gt;
public int GetObjectCount(ObjectQuery objectQuery) {&lt;br /&gt;
	Commands commands = this.Mappings.Commands(objectQuery.ObjectType.ToString());&lt;br /&gt;
	object val = this.Connection.GetScalarValue(commands.RecordCount(objectQuery.WhereClause));&lt;br /&gt;
	return Convert.ToInt32(val);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
I just changed what was the cast to int to use Convert.ToInt32().  It works now with both Oracle and MS SQL.  The c# type for the return when using oracle is decimal so this converts that case to integer.&lt;br /&gt;
&lt;br /&gt;
Thanks for great software,&lt;br /&gt;
DJ</description></item><item><title>Oracle Issues</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1081&amp;key=yTaZJNQfppk7i%2fiFukhi8Q%3d%3d&amp;post=3390</link><pubDate>Tue, 22 Mar 2005 19:15:11 GMT</pubDate><description>There's probably some type of settings you can make to change the delimiters that Oracle uses, but I've personally never seen anything other than double-quotes used with Oracle.  Anyhow, there is certainly nothing wrong with empty strings as long as your table and field names don't contain spaces or other characters that would require delimiters.&lt;br /&gt;
&lt;br /&gt;
As for GetObjectCount, that quite probably does not work with Oracle -- it was such a simple method that I don't think I ever tested it with Oracle -- but Oracle return sets/values are very different than most any other database -- oops.   You may need to use something simpler, like GetDataSet with a manual sql string.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>Oracle Issues</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=1081&amp;key=yTaZJNQfppk7i%2fiFukhi8Q%3d%3d&amp;post=3376</link><pubDate>Mon, 21 Mar 2005 10:28:50 GMT</pubDate><description>I'm having some trouble getting the ORMapper to work with my Oracle database server (9i).  Everything seems to work fine when I'm communicating with my Microsoft SQL server however.&lt;br /&gt;
&lt;br /&gt;
First, I can't seem to get my Oracle server to accept double quotes around table names.  I've modified commands.cs so that the oracle provider uses empty strings as the delimiters and now I can select records using the mapper.  Am I doing this correctly, or is there a way to specify that you want to use ANSI mode when connecting to Oracle.&lt;br /&gt;
&lt;br /&gt;
Second, I get an invalid cast exception when using the GetObjectCount method of an ObjectSpace as it can't cast the result of the RecordCount query into an integer.&lt;br /&gt;
&lt;br /&gt;
I would greatly appreciate any tips you could give me.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
DJ</description></item><item><title>Reading and Checking TimeStamp values in SQL</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=848&amp;key=72wEbUSNXzf%2fPrtwFcGfVw%3d%3d&amp;post=2668</link><pubDate>Fri, 03 Dec 2004 07:05:04 GMT</pubDate><description>MS SQL TimeStamps actually have nothing to do with dates or times -- they are simply binary values that are automatically updated on each persistence and guaranteed to be unique in order to make optimsitic concurrency easily doable.  They currently appear to be implemented as an incremented number, but I don't think there's any docs on that or guarantees that it will remain that way.&lt;br /&gt;
&lt;br /&gt;
If you want to get records that match a date, then you'll need to store and update that date yourself, possibly using a trigger to make it automatic.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>Reading and Checking TimeStamp values in SQL</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=848&amp;key=72wEbUSNXzf%2fPrtwFcGfVw%3d%3d&amp;post=2666</link><pubDate>Fri, 03 Dec 2004 06:17:17 GMT</pubDate><description>I was searching for reading TimeStamp values (stored as binary) in SQL Database table and comparing it with current date (actually need to get recordset that matches a set of records based on date entered in the table). I came across a couple of examples on the internet but it did not work for me. Can you give me an example of the usage? I am using SQL Server 2000, .NET 1.0/1.1, VB.NET</description></item><item><title>SQL connectionString</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=39&amp;key=vzwZYsJF6CGk7SqfxNwTqQ%3d%3d&amp;post=1478</link><pubDate>Sun, 06 Jun 2004 05:09:15 GMT</pubDate><description>You would need to post some code if you want some help.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>SQL connectionString</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=39&amp;key=vzwZYsJF6CGk7SqfxNwTqQ%3d%3d&amp;post=1472</link><pubDate>Fri, 04 Jun 2004 10:13:26 GMT</pubDate><description>Hi All,&lt;br /&gt;
&lt;br /&gt;
I'm getting the following error when trying to open a OLEDB connection to a FoxPro database through C#.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;The ConnectionString property has not been initialized&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The funny thing is, this doesn't happen if I hardcode the connection string at the time of creating the connection. But when I read it from a property of a class it throws this exception. I've checked and double checked a zillion times to verify that the correct connection string is set to the property.&lt;br /&gt;
&lt;br /&gt;
Can someone help me trouleshoot this?&lt;br /&gt;
&lt;br /&gt;
Thanks</description></item><item><title>Performance Issue.</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=166&amp;key=YjwLppOFsbhF1QQyEqdVWg%3d%3d&amp;post=1388</link><pubDate>Tue, 25 May 2004 04:16:02 GMT</pubDate><description>Parameterized sql can be just as performant as stored procs, no doubt about that, although that assumes that things really do get reused.  I don't think I would call this &amp;quot;huge&amp;quot; however, since most of these theoretical gains are pretty minimal, especially compared with good design.&lt;br /&gt;
&lt;br /&gt;
But this really wasn't the subject of this post -- this post was about using stored procs without declaring all of the parameters explicitly.  This technically requires a little more parsing from the SQL engine, but I think its so minimal to not really matter in most cases.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>Performance Issue.</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=166&amp;key=YjwLppOFsbhF1QQyEqdVWg%3d%3d&amp;post=1387</link><pubDate>Mon, 24 May 2004 20:42:09 GMT</pubDate><description>I was under the impression that there's the possibilty of a huge performance gain using the parameterized SQL -- sql server realizes it's the &amp;quot;same&amp;quot; query and can re-use execution plans.</description></item><item><title>How do I model multiple user types in database?</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=349&amp;key=OrGDfbqEV20WrFkgntxZig%3d%3d&amp;post=1186</link><pubDate>Mon, 12 Apr 2004 09:28:03 GMT</pubDate><description>Hi David:&lt;br /&gt;
&lt;br /&gt;
See: http://www.wilsondotnet.com/Tips/ViewPosts.aspx?thread=352&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>SQL connectionString</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=39&amp;key=vzwZYsJF6CGk7SqfxNwTqQ%3d%3d&amp;post=1148</link><pubDate>Wed, 07 Apr 2004 08:36:48 GMT</pubDate><description>Try it and see.  :)  By the way, it continues to work, surprisingly.&lt;br /&gt;
&lt;br /&gt;
Thanks, Paul Wilson</description></item><item><title>SQL connectionString</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=39&amp;key=vzwZYsJF6CGk7SqfxNwTqQ%3d%3d&amp;post=1143</link><pubDate>Tue, 06 Apr 2004 16:30:37 GMT</pubDate><description>So what happens if the file referenced in the web.config appsettings tag doesn't exist?</description></item><item><title>How do I model multiple user types in database?</title><link>http://www.microsoftarchitect.com/Forums/Default.aspx?part=42&amp;action=thread&amp;id=349&amp;key=OrGDfbqEV20WrFkgntxZig%3d%3d&amp;post=1109</link><pubDate>Thu, 01 Apr 2004 19:55:05 GMT</pubDate><description>Hi there,&lt;br /&gt;
&lt;br /&gt;
I was wondering if you could tell me the best way to implement the following scenario in a database.&lt;br /&gt;
&lt;br /&gt;
I have two distinct &amp;quot;types&amp;quot; of users of my system - Employers and Workers.  An Employer is an organization and and a Worker is a single person.  The only thing they have in common is that they both will have a username and password (and thus a &amp;quot;user-id&amp;quot;).  There is no way that an Employer can be a worker or vice-versa.&lt;br /&gt;
&lt;br /&gt;
I am thinking of having a &amp;quot;Users&amp;quot; table that just contains the basic log-in credentials and the UserID.  Then I will have a table for Employers (with a UserID foreign key) and a table for Workers (again, with a UserID foreign key).&lt;br /&gt;
&lt;br /&gt;
So really it's a typical inheritance scheme.  Now I am wondering if the Users table should have any knowledge of it being a Employer or Worker?&lt;br /&gt;
&lt;br /&gt;
What do you think of this?&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
David</description></item></channel></rss>