By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,149 Members | 1,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,149 IT Pros & Developers. It's quick & easy.

Using Enterprise Library DAAB with Strongly Typed DataSet

P: n/a
I have been developing applications with Java for quite a while but I am new
to .NET development. I am trying to learn the ".NET way" of creating Strongly
Typed Objects from a database. The Enterprise Library seems pretty close to
what I am used to in Java but I am not sure how to create strongly-typed
DataSets. I see that I can use the LoadDataSet method from a
Microsoft.Practices.EnterpriseLibrary.Data.Databas e but I am not clear on how
I map my relational model to the strongly-typed DataSet. Can anyone provide
an example or guidance?

Thanks
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"David" <Da***@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
I have been developing applications with Java for quite a while but I am
new
to .NET development. I am trying to learn the ".NET way" of creating
Strongly
Typed Objects from a database. The Enterprise Library seems pretty close
to
what I am used to in Java but I am not sure how to create strongly-typed
DataSets. I see that I can use the LoadDataSet method from a
Microsoft.Practices.EnterpriseLibrary.Data.Databas e but I am not clear on
how
I map my relational model to the strongly-typed DataSet. Can anyone
provide
an example or guidance?

Thanks


Easy Way :)

Right-click on the project you want to add the strongly-typed DataSet to,
click Add New Item. Select DataSet from the list and give it a name, then
click on the Ok (or whatever the button name is to accept). You can
manually create the table (element) using the designer that is opened (if
not opened, double-click the dataset you added to the project). An easier
way would be to open the Server Explorer tool window, connect to the
database, then drag-n-drop the table you want to be added to this DataSet.

This is assuming all default options are still intact :)

Mythran

Nov 17 '05 #2

P: n/a
Thank you for your help. I should have been more specific. I have been able
to use strongly-typed DataSets directly but I have not been able to create
them with the Enterprise Library Data Access Application Block (DAAB). I can
also create untyped DataSets just fine using the Enterprise Library DAAB. I
am looking for an example that shows how to use the Enterprise Library DAAB
to create a strongly typed DataSet. Ideally, that DataSet would have some
form of simple relation like a customer to an address or something similar.

Thanks again
Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.