How to put the datatable into Unity?

Jul 6, 2011 at 9:31 PM

Currently I am working in MVC environment. I got the datatable (now in c#) from DB. How can I put that datatable into Unity?

Jul 7, 2011 at 4:13 AM

Hi,

I'm not sure what are you trying to achieve, but as far as I understand your question, you are trying to persist your datatable into Unity? If this is the case, then it isn't possible since Unity is not a data container, rather a container for dependency injection. You need to use technologies like caching if you want to persist your datatable.

 

Noel Angelo Bolasoc
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com

Jul 26, 2011 at 9:51 PM
Edited Jul 26, 2011 at 9:57 PM

Isnt this the way you resolve unity (prism)  

data tier

Public class Owner 

{ public int Owner id (get: set)

Public string First Name ( get, set)

 

 Owner =Container.resolve<Owner> ( );

I am using silverlight

sql is configured inside prism(unity)  container like this(not part of the web service)   

    http://davidhayden.com/blog/dave/archive/2008/05/19/EnterpriseLibrary4DataAccessApplicationBlockDAABUnityIoCTutorial.aspx

http://www.pnpguidance.net/Screencast/UnityDependencyInjectionIoCScreencast.aspx

http://www.pnpguidance.net/Screencast/DataAccessApplicationBlockScreencastEnterpriseLibraryVideosDAAB.aspx

Jul 27, 2011 at 10:29 AM

Hi,

What exactly is your question? Also, kindly create new thread for new questions. Thanks :)

 

Noel Angelo Bolasoc
Global Technologies and Solutions
Avanade, Inc.
Contact Us