
<rss version="2.0">
<channel>
    <title>LLBLGen.com Forums Database drivers feed</title>
    <link>http://www.llblgen.com/TinyForum/Threads.aspx?ForumID=21</link>
    <description>This is the RSS feed for the forum Database drivers on the LLBLGen.com Forums forum system.</description>
    <ttl>30</ttl>
    <language>en-us</language>

	
		<item>
			<title>SQL Server 2008 by Otis</title>
			<description>&lt;span&gt;Are the tables in the catalog explorer reflecting the types? (so if you right-click on 'fields' of such a table, and select 'show details' do you see the fields as typed geometry etc?&lt;br&gt;&lt;br&gt;(I presume you do use the sql server driver I attached above)&lt;/span&gt;</description>
			<author>Otis</author>
			<link>http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104590</link>
			<pubDate>Thu, 09 Sep 2010 15:21:39 GMT</pubDate>
			<category>SQL Server 2008</category>
			<guid isPermaLink="true">http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104590</guid>
		</item>
	
		<item>
			<title>SQL Server 2008 by MattE</title>
			<description>&lt;span&gt;Ok, back to this, after a day of upgrading my project to version 3.&lt;br&gt;&lt;br&gt;For some reason, the spatial data types aren't in the list of types to create a shortcut for.&lt;br&gt;&lt;br&gt;Its definitely in the GAC. And the version in the GAC includes the spatial types. I've reflected it&lt;br&gt;&lt;br&gt;Anything else I need to do?&lt;br&gt;&lt;br&gt;thanks again.&lt;br&gt;&lt;br&gt;&lt;/span&gt;</description>
			<author>MattE</author>
			<link>http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104588</link>
			<pubDate>Thu, 09 Sep 2010 15:07:56 GMT</pubDate>
			<category>SQL Server 2008</category>
			<guid isPermaLink="true">http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104588</guid>
		</item>
	
		<item>
			<title>SQL Server 2008 by MattE</title>
			<description>&lt;span&gt;Wow!&lt;br&gt;&lt;br&gt;That was quick . Thanks.&lt;br&gt;&lt;/span&gt;</description>
			<author>MattE</author>
			<link>http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104460</link>
			<pubDate>Tue, 07 Sep 2010 13:24:06 GMT</pubDate>
			<category>SQL Server 2008</category>
			<guid isPermaLink="true">http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104460</guid>
		</item>
	
		<item>
			<title>SQL Server 2008 by Otis</title>
			<description>&lt;span&gt;Ok!&lt;br&gt;&lt;br&gt;It's fixed. The fix I attach here is not the 100% fix, as a small part is in the applicationcore, but you can work around that for now.&lt;br&gt;&lt;br&gt;3 assemblies were affected: the sql server driver (attached), BCL extensions (attached) and applicationcore (not attached). The part in application core is for the automatic typeshortcut addition for a udt. You can work around this by adding the type shortcuts manually by right-clicking the project node -&amp;gt; Edit type shortcuts, and then add two type shortcuts, one for geometry and one for geography. &lt;br&gt;&lt;br&gt;Do that before you reverse engineer the entities, as they'll be used automatically then. &lt;br&gt;&lt;br&gt;About using the functions in queries: they're not available to you automatically, so you if you want to use it in Linq, you have to map a custom function (See 'Linq to LLBLGen Pro' documentation for details how to do that, it's a couple of lines of code). After that, you can use the method in a linq query which is then converted to the sql function. &lt;br&gt;&lt;br&gt;Unpack the attached zip in the llblgen pro installation folder, it will overwrite the bcl extensions dll and the sqlserver driver. Please note the workaround I described above about the type shortcuts. &lt;br&gt;&lt;br&gt;Load your project, refresh the catalog and the types should be picked up. You can see that in the catalog explorer -&amp;gt; show details and in the type shortcuts dialog. &lt;br&gt;&lt;br&gt;Full fix is available in the next build&lt;/span&gt;</description>
			<author>Otis</author>
			<link>http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104459</link>
			<pubDate>Tue, 07 Sep 2010 13:20:19 GMT</pubDate>
			<category>SQL Server 2008</category>
			<guid isPermaLink="true">http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104459</guid>
		</item>
	
		<item>
			<title>SQL Server 2008 by Otis</title>
			<description>&lt;span&gt;&lt;table width=&quot;95%&quot; align=&quot;center&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot;&gt;
    &lt;tr&gt;
      &lt;td align=&quot;left&quot;&gt;&lt;b&gt;MattE wrote:&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class=&quot;QuoteText&quot;&gt;Ok, I'll wait to hear from you then.&lt;br&gt;&lt;br&gt;To answer your question, we are doing database first (by which I assume you mean the DB drives the Model, and not the other way around. Didn't realize it was possible to be honest.....)&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks, Matthew&lt;br&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;&lt;br&gt;yes v3 does model first as well, you create an entity, create some fields, say 'automap' and voila, you have a table with fields &lt;img src=&quot;pics/smileyregular.gif&quot; border=&quot;0&quot; alt=&quot;Regular Smiley&quot;&gt; Export it to DDL SQL -&amp;gt; run it on the DB, done. &lt;br&gt;&lt;br&gt;Looking into the problem now.&lt;br&gt;&lt;br&gt;(edit) main problem seems to be that the type is reported as 'geometry' or 'geography' but no UDT type is specified. The driver doesn't pick it up. We'll add the UDT type if the type is loadable, and will see if it is picked up then. &lt;br&gt;&lt;br&gt;(edit) driver picks up type now, doesn't create a typeshortcut automatically while it does that automatically for a user UDT, so a little bug left in that area. Likely because it's not truly part of the catalog. Will make it part of the catalog (as the assembly seems to be registered in each catalog separately). &lt;/span&gt;</description>
			<author>Otis</author>
			<link>http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104458</link>
			<pubDate>Tue, 07 Sep 2010 11:26:55 GMT</pubDate>
			<category>SQL Server 2008</category>
			<guid isPermaLink="true">http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104458</guid>
		</item>
	
		<item>
			<title>SQL Server 2008 by MattE</title>
			<description>&lt;span&gt;Ok, I'll wait to hear from you then.&lt;br&gt;&lt;br&gt;To answer your question, we are doing database first (by which I assume you mean the DB drives the Model, and not the other way around. Didn't realize it was possible to be honest.....)&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks, Matthew&lt;br&gt;&lt;/span&gt;</description>
			<author>MattE</author>
			<link>http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104454</link>
			<pubDate>Tue, 07 Sep 2010 10:46:25 GMT</pubDate>
			<category>SQL Server 2008</category>
			<guid isPermaLink="true">http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104454</guid>
		</item>
	
		<item>
			<title>SQL Server 2008 by Otis</title>
			<description>&lt;span&gt;To our knowledge the spatial types are UDTs, so when a table has a spatial type, it's seen as a UDT, and the assembly of the type is 'loaded' (i.e. if the type is reachable through the GAC etc.) and used as such. If that type lookup fails, the type is skipped and seen as 'string'. &lt;br&gt;&lt;br&gt;We'll look into whether the types are indeed reported as 'UDT' or otherwise. If otherwise, it won't work of course, so we'll then make a change to the driver. &lt;br&gt;&lt;br&gt;For doing model first, you have to add a type converter which returns the spatial type. It is then picked up as a type you can work with for mapping to tables. The reason it is cumbersome for model-first is that sqlserver requires you to register the UDT assemblies with the catalog, which is a pretty strict (read: cumbersome) process, so using UDT's is actually a database-first 'preferred' mechanism. Not sure if you're using model first or database first. &lt;/span&gt;</description>
			<author>Otis</author>
			<link>http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104419</link>
			<pubDate>Mon, 06 Sep 2010 15:16:29 GMT</pubDate>
			<category>SQL Server 2008</category>
			<guid isPermaLink="true">http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104419</guid>
		</item>
	
		<item>
			<title>SQL Server 2008 by MattE</title>
			<description>&lt;span&gt;Yes, but apparently not?&lt;br&gt;&lt;br&gt;I get the feeling I might need to be manually setting up a UDT in the fields editor or something..&lt;br&gt;&lt;br&gt;I will keep digging around &lt;/span&gt;</description>
			<author>MattE</author>
			<link>http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104414</link>
			<pubDate>Mon, 06 Sep 2010 14:09:20 GMT</pubDate>
			<category>SQL Server 2008</category>
			<guid isPermaLink="true">http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104414</guid>
		</item>
	
		<item>
			<title>SQL Server 2008 by Walaa</title>
			<description>&lt;span&gt;The sql server driver should have picked them up.&lt;/span&gt;</description>
			<author>Walaa</author>
			<link>http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104413</link>
			<pubDate>Mon, 06 Sep 2010 14:06:14 GMT</pubDate>
			<category>SQL Server 2008</category>
			<guid isPermaLink="true">http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104413</guid>
		</item>
	
		<item>
			<title>SQL Server 2008 by MattE</title>
			<description>&lt;span&gt;&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;The geographical spatial types are supported as long as you have the .NET assembly which defines the types in your GAC&lt;br&gt;&lt;br&gt;Ok, I've gac'ced that assembly, but the field is still mapped as a string, by default&lt;br&gt;&lt;br&gt;What should it be? (do I need to map it manually, in the editor?)&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;M&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/span&gt;</description>
			<author>MattE</author>
			<link>http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104405</link>
			<pubDate>Mon, 06 Sep 2010 11:33:40 GMT</pubDate>
			<category>SQL Server 2008</category>
			<guid isPermaLink="true">http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=15680&amp;StartAtMessage=0#104405</guid>
		</item>
	
</channel>
</rss>  
