Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I want to follow the procedure at:

http://msdn.microsoft.com/en-us/library/bb384570.aspx[^]

but the client has told me not to use a WCF service in between the Data Entity Layer and the Presentation Tier. Nor a web service or any service of any kind. So I put in a Class Library instead.

Or should I plop down a DataGridView on my form that's linked directly to the DataEntityTier somehow?

I've already tried putting together a class library to serve as the go-between and using it as an Object Data Source. The BindingNavigator works OK but the gridview won't populate.

Brian
Posted

For such case an MVP[^] pattern is quite good.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 2-Jun-11 2:06am    
Yes, and also http://en.wikipedia.org/wiki/Model_View_Presenter.
My 5.
--SA
Wonde Tadesse 2-Jun-11 7:23am    
Thanks
Take a look at How to: Bind Objects to Windows Form Controls[^] - no need to put anything between. If you want to use DataSet, DataTable and adapters, I think it's better to just stick with the "old" Fill way of doing things.

An aternative is to use something like:Database Helper v 2.0.0[^]

Best regards
Espen Harlinn
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 2-Jun-11 2:05am    
Nice walk-through, a 5.
--SA
Espen Harlinn 2-Jun-11 5:39am    
Thank you, SAKryukov
thatraja 2-Jun-11 3:14am    
I like the alternate, 5!
Espen Harlinn 2-Jun-11 5:39am    
Thank you, thatraja
Sergey Alexandrovich Kryukov 6-Jun-11 17:56pm    
Me too, a 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900