Two way databinding in Ent Lib

Topics: Data Access Application Block
Nov 19, 2010 at 5:10 AM
Edited Nov 19, 2010 at 5:10 AM


This is my first Ent Lib project. How can I create a two way data binding with form controls using Ent Lib 5? Something equivalent to how one can achieve using binding source having a data table in a dataset as data source and using dataadapter to fill and update data.



Nov 19, 2010 at 5:34 AM

Ent Lib's DAAB has no binding features.  But if you're asking how to do it in EntLib way, you would retrieve your dataset from the database using an instance of a Database class and calling the ExecuteDataSet method against it.  To update changes in the database, you would then use the UpdateDataSet method of again a Database instance.


Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.