<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Jarek Kowalski</title>
	<atom:link href="http://jkowalski.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://jkowalski.com</link>
	<description>c#:\dev\blog</description>
	<lastBuildDate>Mon, 31 Oct 2011 14:44:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>Comment on Sample Provider for Entity Framework 4.0 is available by Peter Kellner</title>
		<link>http://jkowalski.com/2010/05/24/sample-provider-for-entity-framework-4-0-is-available/comment-page-1/#comment-330</link>
		<dc:creator>Peter Kellner</dc:creator>
		<pubDate>Mon, 31 Oct 2011 14:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://jkowalski.com/?p=58#comment-330</guid>
		<description><![CDATA[Hi Jarek,
I notice in the Q&amp;A on EFProviderWrappers there are questions on what is support like for codefirst and cache?  I&#039;ve got the same question.  Any thoughts?  how about if you generate the codefirst classes from an edmx?  Thanks for the great efforts here.

Peter Kellner
MVP ASP.NET]]></description>
		<content:encoded><![CDATA[<p>Hi Jarek,<br />
I notice in the Q&amp;A on EFProviderWrappers there are questions on what is support like for codefirst and cache?  I&#8217;ve got the same question.  Any thoughts?  how about if you generate the codefirst classes from an edmx?  Thanks for the great efforts here.</p>
<p>Peter Kellner<br />
MVP ASP.NET</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Contact by Andras Galli</title>
		<link>http://jkowalski.com/contact/comment-page-1/#comment-220</link>
		<dc:creator>Andras Galli</dc:creator>
		<pubDate>Sat, 21 May 2011 19:18:38 +0000</pubDate>
		<guid isPermaLink="false">http://jkowalski.com/?page_id=39#comment-220</guid>
		<description><![CDATA[Hello Jarek!

I&#039;ve started to use your EFProviderWrapper in a Windows Service application. The app creates WCF interfaces, and a cliens can ask, and send data to the app. When a client send something, i write it to the database, and there is a method when i can ask back the stored values. 
My problem is, that after i insert a new value (with LINQ), it appears in the database, but when i try to query it with a LINQ expression, is gives back the cached data, but without the newly inserted value. 
Do you have any idea, why i can&#039;t get back the new value, just after restarting my application?

Thank you!

Regards!]]></description>
		<content:encoded><![CDATA[<p>Hello Jarek!</p>
<p>I&#8217;ve started to use your EFProviderWrapper in a Windows Service application. The app creates WCF interfaces, and a cliens can ask, and send data to the app. When a client send something, i write it to the database, and there is a method when i can ask back the stored values.<br />
My problem is, that after i insert a new value (with LINQ), it appears in the database, but when i try to query it with a LINQ expression, is gives back the cached data, but without the newly inserted value.<br />
Do you have any idea, why i can&#8217;t get back the new value, just after restarting my application?</p>
<p>Thank you!</p>
<p>Regards!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Entity Framework by Vahid Fotovat</title>
		<link>http://jkowalski.com/ef/comment-page-1/#comment-204</link>
		<dc:creator>Vahid Fotovat</dc:creator>
		<pubDate>Mon, 11 Apr 2011 22:53:58 +0000</pubDate>
		<guid isPermaLink="false">http://jkowalski.com/?page_id=37#comment-204</guid>
		<description><![CDATA[Great work and thank you for the samples.  I&#039;ve been playing with the EFProviderWrappers and trying to apply it to EFCodeFirst  with out any success.  I was wondering if there would also be a way to intercept the query in EFCodeFirst before it is sent to the SQL server.

Thank you]]></description>
		<content:encoded><![CDATA[<p>Great work and thank you for the samples.  I&#8217;ve been playing with the EFProviderWrappers and trying to apply it to EFCodeFirst  with out any success.  I was wondering if there would also be a way to intercept the query in EFCodeFirst before it is sent to the SQL server.</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Contact by Bruno Nogueira</title>
		<link>http://jkowalski.com/contact/comment-page-1/#comment-200</link>
		<dc:creator>Bruno Nogueira</dc:creator>
		<pubDate>Fri, 25 Mar 2011 11:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://jkowalski.com/?page_id=39#comment-200</guid>
		<description><![CDATA[Hi,

I found 2 possible bugs in the EF Wrapper 1.02.

1. From time to time I am getting an exception on this line from the EntityConnectionWrapperUtils:
            var storeConnection = DbProviderFactories.GetFactory(ecsb.Provider).CreateConnection();

Exception:
System.Web.HttpUnhandledException (0x80004005): Exception of type &#039;System.Web.HttpUnhandledException&#039; was thrown. ---&gt; System.ArgumentException: An item with the same key has already been added.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at EFProviderWrapperToolkit.EntityConnectionWrapperUtils.CreateEntityConnectionWithWrappers(String entityConnectionString, String[] wrapperProviders) in C:\Users\Bruno\Downloads\EF4ProviderWrappers\EF4ProviderWrappers\EFProviderWrapperToolkit\EntityConnectionWrapperUtils.cs:line 58


2. The InMemoryCache, unlike AspNetCache, doesnt do a Hash on the key before adding it to the cache, so big SQL are not being added to the cache. My idea would be use MemoryCache from 4.0, or hash the sql before adding it to the cache.

Please, let me know if you need further explanation.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I found 2 possible bugs in the EF Wrapper 1.02.</p>
<p>1. From time to time I am getting an exception on this line from the EntityConnectionWrapperUtils:<br />
            var storeConnection = DbProviderFactories.GetFactory(ecsb.Provider).CreateConnection();</p>
<p>Exception:<br />
System.Web.HttpUnhandledException (0&#215;80004005): Exception of type &#8216;System.Web.HttpUnhandledException&#8217; was thrown. &#8212;&gt; System.ArgumentException: An item with the same key has already been added.<br />
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)<br />
at EFProviderWrapperToolkit.EntityConnectionWrapperUtils.CreateEntityConnectionWithWrappers(String entityConnectionString, String[] wrapperProviders) in C:\Users\Bruno\Downloads\EF4ProviderWrappers\EF4ProviderWrappers\EFProviderWrapperToolkit\EntityConnectionWrapperUtils.cs:line 58</p>
<p>2. The InMemoryCache, unlike AspNetCache, doesnt do a Hash on the key before adding it to the cache, so big SQL are not being added to the cache. My idea would be use MemoryCache from 4.0, or hash the sql before adding it to the cache.</p>
<p>Please, let me know if you need further explanation.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Contact by Dwight Smith</title>
		<link>http://jkowalski.com/contact/comment-page-1/#comment-193</link>
		<dc:creator>Dwight Smith</dc:creator>
		<pubDate>Sun, 06 Mar 2011 20:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://jkowalski.com/?page_id=39#comment-193</guid>
		<description><![CDATA[Do you have any documentation about how to configure EF Tracing and Caching wrappers when your model is in a separate class library from your application code?  When I tried to follow your config docs, I ended up getting no errors, but also getting no data!  

Thanks much.]]></description>
		<content:encoded><![CDATA[<p>Do you have any documentation about how to configure EF Tracing and Caching wrappers when your model is in a separate class library from your application code?  When I tried to follow your config docs, I ended up getting no errors, but also getting no data!  </p>
<p>Thanks much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Contact by Marty Tippin</title>
		<link>http://jkowalski.com/contact/comment-page-1/#comment-192</link>
		<dc:creator>Marty Tippin</dc:creator>
		<pubDate>Sun, 27 Feb 2011 04:19:08 +0000</pubDate>
		<guid isPermaLink="false">http://jkowalski.com/?page_id=39#comment-192</guid>
		<description><![CDATA[Your original blog post regarding the EFCachingProvider mentions that the custom caching policy can specify cache expiration but I see no public means of achieving that using the custom caching policy.

Am I missing something or is that capability not implemented?

Thanks]]></description>
		<content:encoded><![CDATA[<p>Your original blog post regarding the EFCachingProvider mentions that the custom caching policy can specify cache expiration but I see no public means of achieving that using the custom caching policy.</p>
<p>Am I missing something or is that capability not implemented?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Contact by Ronny E. Mathiasen</title>
		<link>http://jkowalski.com/contact/comment-page-1/#comment-181</link>
		<dc:creator>Ronny E. Mathiasen</dc:creator>
		<pubDate>Tue, 01 Feb 2011 21:55:12 +0000</pubDate>
		<guid isPermaLink="false">http://jkowalski.com/?page_id=39#comment-181</guid>
		<description><![CDATA[Sorry if this is a double post, but I didn&#039;t see any confimation that my message was sent ;)

Hi Jarek,

I have a quick question for you.
I just recently started digging in to EF 4.0 and needed some logging/tracing capabilities. I came across EFTracingProvider witch looks great but unfortunately not working for me.

My question is therefore: is it still needed to use EFTracingProvider for tracing or have I missed some built in feature of EF 4.0 that does the same?

Thanks and regards,
Ronny]]></description>
		<content:encoded><![CDATA[<p>Sorry if this is a double post, but I didn&#8217;t see any confimation that my message was sent <img src='http://jkowalski.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Hi Jarek,</p>
<p>I have a quick question for you.<br />
I just recently started digging in to EF 4.0 and needed some logging/tracing capabilities. I came across EFTracingProvider witch looks great but unfortunately not working for me.</p>
<p>My question is therefore: is it still needed to use EFTracingProvider for tracing or have I missed some built in feature of EF 4.0 that does the same?</p>
<p>Thanks and regards,<br />
Ronny</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Contact by Ronny E. Mathiasen</title>
		<link>http://jkowalski.com/contact/comment-page-1/#comment-180</link>
		<dc:creator>Ronny E. Mathiasen</dc:creator>
		<pubDate>Tue, 01 Feb 2011 21:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://jkowalski.com/?page_id=39#comment-180</guid>
		<description><![CDATA[Hi Jarek,

I have a quick question for you.
I just recently started digging in to EF 4.0 and needed some logging/tracing capabilities. I came across EFTracingProvider witch looks great but unfortunately not working for me.

My question is therefore: is it still needed to use EFTracingProvider for tracing or have I missed some built in feature of EF 4.0 that does the same?

Thanks and regards,
Ronny]]></description>
		<content:encoded><![CDATA[<p>Hi Jarek,</p>
<p>I have a quick question for you.<br />
I just recently started digging in to EF 4.0 and needed some logging/tracing capabilities. I came across EFTracingProvider witch looks great but unfortunately not working for me.</p>
<p>My question is therefore: is it still needed to use EFTracingProvider for tracing or have I missed some built in feature of EF 4.0 that does the same?</p>
<p>Thanks and regards,<br />
Ronny</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on EFProviderWrappers v1.02 is available by John</title>
		<link>http://jkowalski.com/2010/08/03/efproviderwrappers-v1-02-is-available/comment-page-1/#comment-179</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 01 Feb 2011 17:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://jkowalski.com/?p=61#comment-179</guid>
		<description><![CDATA[It looks like the call to EntityConnectionWrapperUtils.CreateEntityConnectionWithWrappers is not thread-safe.  You may want to consider putting locks around the Dictionary calls.]]></description>
		<content:encoded><![CDATA[<p>It looks like the call to EntityConnectionWrapperUtils.CreateEntityConnectionWithWrappers is not thread-safe.  You may want to consider putting locks around the Dictionary calls.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Contact by Scott Beardsley</title>
		<link>http://jkowalski.com/contact/comment-page-1/#comment-176</link>
		<dc:creator>Scott Beardsley</dc:creator>
		<pubDate>Wed, 26 Jan 2011 20:38:56 +0000</pubDate>
		<guid isPermaLink="false">http://jkowalski.com/?page_id=39#comment-176</guid>
		<description><![CDATA[Hello Jarek,

I found the EFProviderWrappers project yesterday and have been testing it with AppFabric Caching (Velocity) as a Cache-Through provider.  One thing I noticed was with ambient transactions via TransactionScope, Cache.InvalidateSets() never gets called.

It appears that the underlying SQLConnection is enlisting in the ambient transaction, however the DBConnectionWrapper.EnlistTransaction never gets called.

After some digging, I think I have come up with a solution to the problem.  However I haven&#039;t ever touched this part of the framework before and I am curious if this is the proper way to solve the problem.

You can see the gist of my code additions at https://gist.github.com/797390

Basically in EFCachingConnection.Open, I enlist in the ambient transaction using a custom IEnlistmentNotification (EFCachingEnlistment) that does the same thing as the EFCachingTransaction.

The EFCachingCommand updates the CachingEnlistment when one exists on the EFCachingConnection... the same way it would if the EFCachingTransaction existed.

Thanks in advance, and feel free to use this code to add the functionality to the EFCachingProvider.  Also if I am doing something completely wrong, please let me know.

Thanks,
Scott Beardsley]]></description>
		<content:encoded><![CDATA[<p>Hello Jarek,</p>
<p>I found the EFProviderWrappers project yesterday and have been testing it with AppFabric Caching (Velocity) as a Cache-Through provider.  One thing I noticed was with ambient transactions via TransactionScope, Cache.InvalidateSets() never gets called.</p>
<p>It appears that the underlying SQLConnection is enlisting in the ambient transaction, however the DBConnectionWrapper.EnlistTransaction never gets called.</p>
<p>After some digging, I think I have come up with a solution to the problem.  However I haven&#8217;t ever touched this part of the framework before and I am curious if this is the proper way to solve the problem.</p>
<p>You can see the gist of my code additions at <a href="https://gist.github.com/797390" rel="nofollow">https://gist.github.com/797390</a></p>
<p>Basically in EFCachingConnection.Open, I enlist in the ambient transaction using a custom IEnlistmentNotification (EFCachingEnlistment) that does the same thing as the EFCachingTransaction.</p>
<p>The EFCachingCommand updates the CachingEnlistment when one exists on the EFCachingConnection&#8230; the same way it would if the EFCachingTransaction existed.</p>
<p>Thanks in advance, and feel free to use this code to add the functionality to the EFCachingProvider.  Also if I am doing something completely wrong, please let me know.</p>
<p>Thanks,<br />
Scott Beardsley</p>
]]></content:encoded>
	</item>
</channel>
</rss>
