<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SampleEdmxCodeGenerator sources</title><link>http://blogs.msdn.com/adonet/archive/2008/01/24/sampleedmxcodegenerator-sources.aspx</link><description>As a follow up to my previous article on Customizing Code Generation in the ADO.NET Entity Designer , here are the sources and instructions for SampleEdmxCodeGenerator. SampleEdmxCodeGenerator is not intended for production use; instead, it demonstrates</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: SampleEdmxCodeGenerator sources</title><link>http://blogs.msdn.com/adonet/archive/2008/01/24/sampleedmxcodegenerator-sources.aspx#7248493</link><pubDate>Sat, 26 Jan 2008 02:36:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7248493</guid><dc:creator>mike_eeee</dc:creator><description>&lt;p&gt;Thank you so much for posting these helpful articles! &amp;nbsp;I would also encourage your team to implement a plug-in architecture for the CodeGenerators, so that the overall process is easier for end-developers (no need to go into the registry... it is 2008, after all. ;)).&lt;/p&gt;
&lt;p&gt;If a plugin system was used, then all developers would have to do is create a plugin assembly (by decorating the assembly with a specified attribute), compile, and place the resulting assembly within a specified plugin directory. &amp;nbsp;Simple. :)&lt;/p&gt;
&lt;p&gt;I actually have put together an assembly that does just this. &amp;nbsp;I'll have to clean it up and have someone take a look at it. &amp;nbsp;(you have inspired me!)&lt;/p&gt;
</description></item><item><title>Welcome to the Entity Framework Toolkits &amp;amp; Extensions</title><link>http://blogs.msdn.com/adonet/archive/2008/01/24/sampleedmxcodegenerator-sources.aspx#7264025</link><pubDate>Sun, 27 Jan 2008 11:19:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7264025</guid><dc:creator>Diego's Data Access Blog</dc:creator><description>&lt;p&gt;Today we went live with something very dear to me: The Entity Framework Toolkits &amp;amp;amp; Extensions . This&lt;/p&gt;
</description></item><item><title>Entity Framework FAQ</title><link>http://blogs.msdn.com/adonet/archive/2008/01/24/sampleedmxcodegenerator-sources.aspx#8502939</link><pubDate>Wed, 14 May 2008 11:53:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8502939</guid><dc:creator>system.data.objects dev guy</dc:creator><description>&lt;p&gt;Entity Framework FAQ Version 0.4 – 5/13/2008 New in this version of the FAQ… &amp;#183; Major Update for VS 2008&lt;/p&gt;
</description></item><item><title>re: SampleEdmxCodeGenerator sources</title><link>http://blogs.msdn.com/adonet/archive/2008/01/24/sampleedmxcodegenerator-sources.aspx#8517638</link><pubDate>Sat, 17 May 2008 21:09:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8517638</guid><dc:creator>Javadch</dc:creator><description>&lt;p&gt;I am developing a multi language web site using asp.net, linq to entities (or perhaps linq to sql). I have to handle some data in a multi lingual manner. For example I have a News entity in the conceptual model and I'd like to map it to (News, NewsLocal pair) tables in such a way to be able to do following things:&lt;/p&gt;
&lt;p&gt;1.	News n = News.CreateNews(id21, &amp;quot;en-US&amp;quot;);&lt;/p&gt;
&lt;p&gt;a.	n.CreatedOn = DateTime.Now; // must go to News.CreatedOn field &lt;/p&gt;
&lt;p&gt;b.	n.ValidTo = n.CreatedOn.AddDays(7);&lt;/p&gt;
&lt;p&gt;c.	n.Title = &amp;quot;News Test Title&amp;quot;; // must go to NewsLocal.Title field&lt;/p&gt;
&lt;p&gt;d.	n.Body = &amp;quot;News Test Body&amp;quot;;&lt;/p&gt;
&lt;p&gt;e.	db.AddToNews(n);&lt;/p&gt;
&lt;p&gt;f.	db.SaveChanges(); &lt;/p&gt;
&lt;p&gt;2.	var q = from n db.News where n.CultureId == &amp;quot;en-US&amp;quot; &amp;amp;&amp;amp; n.ValidTo &amp;lt;= DateTime.Now select n;&lt;/p&gt;
&lt;p&gt;3.	Some similar approach for update and delete …&lt;/p&gt;
&lt;p&gt;Any solution, advice or alternative is needed and welcomed!&lt;/p&gt;
&lt;p&gt;Following are table creation scripts:&lt;/p&gt;
&lt;p&gt;USE [ECMS]&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;/****** Object: &amp;nbsp;Table [dbo].[News] &amp;nbsp; &amp;nbsp;Script Date: 05/16/2008 13:23:04 ******/&lt;/p&gt;
&lt;p&gt;SET ANSI_NULLS ON&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;SET QUOTED_IDENTIFIER ON&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;SET ANSI_PADDING ON&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;CREATE TABLE [dbo].[News](&lt;/p&gt;
&lt;p&gt;	[Id] [varchar](36) COLLATE SQL_Latin1_General_CP1256_CI_AS NOT NULL,&lt;/p&gt;
&lt;p&gt;	[CreatedOn] [datetime] NULL,&lt;/p&gt;
&lt;p&gt;	[ValidTo] [datetime] NULL,&lt;/p&gt;
&lt;p&gt; CONSTRAINT [PK_News] PRIMARY KEY CLUSTERED &lt;/p&gt;
&lt;p&gt;(&lt;/p&gt;
&lt;p&gt;	[Id] ASC&lt;/p&gt;
&lt;p&gt;)WITH (PAD_INDEX &amp;nbsp;= OFF, STATISTICS_NORECOMPUTE &amp;nbsp;= OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS &amp;nbsp;= ON, ALLOW_PAGE_LOCKS &amp;nbsp;= ON) ON [PRIMARY]&lt;/p&gt;
&lt;p&gt;) ON [PRIMARY]&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;SET ANSI_PADDING OFF&lt;/p&gt;
&lt;p&gt;USE [ECMS]&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;/****** Object: &amp;nbsp;Table [dbo].[NewsLocal] &amp;nbsp; &amp;nbsp;Script Date: 05/16/2008 13:24:04 ******/&lt;/p&gt;
&lt;p&gt;SET ANSI_NULLS ON&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;SET QUOTED_IDENTIFIER ON&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;SET ANSI_PADDING ON&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;CREATE TABLE [dbo].[NewsLocal](&lt;/p&gt;
&lt;p&gt;	[NewsId] [varchar](36) COLLATE SQL_Latin1_General_CP1256_CI_AS NOT NULL,&lt;/p&gt;
&lt;p&gt;	[CultureId] [varchar](5) COLLATE SQL_Latin1_General_CP1256_CI_AS NOT NULL,&lt;/p&gt;
&lt;p&gt;	[Title] [varchar](50) COLLATE SQL_Latin1_General_CP1256_CI_AS NULL,&lt;/p&gt;
&lt;p&gt;	[Body] [varchar](500) COLLATE SQL_Latin1_General_CP1256_CI_AS NULL,&lt;/p&gt;
&lt;p&gt; CONSTRAINT [PK_NewsLocal] PRIMARY KEY CLUSTERED &lt;/p&gt;
&lt;p&gt;(&lt;/p&gt;
&lt;p&gt;	[NewsId] ASC,&lt;/p&gt;
&lt;p&gt;	[CultureId] ASC&lt;/p&gt;
&lt;p&gt;)WITH (PAD_INDEX &amp;nbsp;= OFF, STATISTICS_NORECOMPUTE &amp;nbsp;= OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS &amp;nbsp;= ON, ALLOW_PAGE_LOCKS &amp;nbsp;= ON) ON [PRIMARY]&lt;/p&gt;
&lt;p&gt;) ON [PRIMARY]&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;SET ANSI_PADDING OFF&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;ALTER TABLE [dbo].[NewsLocal] &amp;nbsp;WITH CHECK ADD &amp;nbsp;CONSTRAINT [FK_NewsLocal_News] FOREIGN KEY([NewsId])&lt;/p&gt;
&lt;p&gt;REFERENCES [dbo].[News] ([Id])&lt;/p&gt;
&lt;p&gt;ON UPDATE CASCADE&lt;/p&gt;
&lt;p&gt;ON DELETE CASCADE&lt;/p&gt;
&lt;p&gt;GO&lt;/p&gt;
&lt;p&gt;ALTER TABLE [dbo].[NewsLocal] CHECK CONSTRAINT [FK_NewsLocal_News]&lt;/p&gt;
&lt;p&gt;j_chamanara@yahoo.com&lt;/p&gt;
</description></item><item><title>re: SampleEdmxCodeGenerator sources</title><link>http://blogs.msdn.com/adonet/archive/2008/01/24/sampleedmxcodegenerator-sources.aspx#8564286</link><pubDate>Fri, 30 May 2008 23:38:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8564286</guid><dc:creator>Geminiman</dc:creator><description>&lt;p&gt;Thank you so much for the post! &amp;nbsp;If I can get this working then I'll be able to use my own base class, which is a must for any good business rules.&lt;/p&gt;
&lt;p&gt;I'm having a problem though:&lt;/p&gt;
&lt;p&gt;If I run the custom tool, it says &amp;quot;Cannot find custom tool 'SampleEdmxCodeGenerator&amp;quot;&lt;/p&gt;
&lt;p&gt;But it's definately in the gac, and I didn't change anything else about it and I did run the reg file.&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
</description></item><item><title>Entity Framework FAQ(转)</title><link>http://blogs.msdn.com/adonet/archive/2008/01/24/sampleedmxcodegenerator-sources.aspx#8591576</link><pubDate>Wed, 11 Jun 2008 19:12:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8591576</guid><dc:creator>江南白衣</dc:creator><description>&lt;p&gt;The Entity Framework enables developers to reason about and write queries in terms of the EDM model rather than the logical schema of tables, joins, foreign keys, and so on. Many enterprise systems have multiple applications/databases with varying degrees&lt;/p&gt;
</description></item><item><title>Entity Classes &amp; Architecture Patterns</title><link>http://blogs.msdn.com/adonet/archive/2008/01/24/sampleedmxcodegenerator-sources.aspx#8846218</link><pubDate>Sun, 10 Aug 2008 11:16:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8846218</guid><dc:creator>system.data.objects dev guy</dc:creator><description>&lt;p&gt;Part of the Entity Framework FAQ . 2. Architecture and Patterns 2.1. Does Entity Framework have support&lt;/p&gt;
</description></item></channel></rss>