Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreEntity Framework as DataProviderEntity Framework as DataProvider
Previous
 
Next
New Post
4/12/2011 2:14 PM
 
I've converted part of the store to use the Entity Framework - to make it easy to update category and product tables and not have to manage all of the stored procedures when a field changes.  And this seems to work ok, though I need to update the web.config with an entity connection string on install.  Is there a way to do that from a dnn install package?

Thanks,

Jay
 
New Post
4/13/2011 12:23 AM
 
The dnn installer has built in support for manipulation of xml files like web.config via the XML merge api.

The dnn wiki has some useful information in its use:

http://www.dotnetnuke.com/Community/W...

westa
 
New Post
4/13/2011 3:17 AM
 
Apart from the web.config, the problem to package a module with an EF model is the {DatabaseOwner} and {ObjectQualifier} settings, which are uselly hardcoded in the model.

I can imagine a scenario where you would want to package your Entity Frameworked Store for your own customers, but if you wanted to distribute it, you would have to dynamically inject DatabaseOwner and ObjectQualifier into the model.

I remember that Brandon Haynes has a solution for that but I don't know if he went further. At that time we had discussions with Gilles about integrating an EF model in the Store package, but we decided that it was a bit early.

Anyway, I digress from your initial question. We'll be glad to hear from your experience with EF. There is a serie of 3 blogs I wrote in april-june 2009 and you might reactivate them with new perspectives, particularly those that could have been brought by EF 2 that did not exist at that time.

http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/2215/Discover-Entity-Framework-with-DotNetNuke-and-the-Store-module.aspx

http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/2238/Store-Entity-framework-and-Dynamic-Data.aspx

Benoît Sarton
www.bsi.fr
www.dotnetnuke.fr
 
New Post
4/13/2011 12:03 PM
 
Thanks.. that's my exact problem.  Updating the web.config with the connection string and owner/password on install.   I'll have to add this manually on installs for now, and come back to this it sounds like. 

Overall, using the EF works great - seems fast, and it's easy to update (if you've ever tried to maintain the collection of sprocs).  I'm only doing the Category / Product related tables right now, but will eventually cut over the store admin, carts and orders data providers.

Thanks,

Jay

 
New Post
4/14/2011 12:13 AM
 
Hi Jay,

You should have a look at this post from Brandon and to the related project at Codeplex, may be this could help! ;-)

Gilles

We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreEntity Framework as DataProviderEntity Framework as DataProvider


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out