473,417 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,417 software developers and data experts.

Using Enterprise Library DAAB with Strongly Typed DataSet

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
2 4354

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eric Nilsson via .NET 247 | last post by:
I need a good design (pattern?) for working with persistantobjects. This is what has been bothering me, I'm on 3'rd year inuniversity learning computer science, and I am now working on...
1
by: Job Lot | last post by:
I am confused how strongly typed dataset is different from un-typed dataset. Is there any good link explaining pros and cons of both? Which one should be used preferably?
0
by: Mateusz [PEYN] Adamus | last post by:
Hi I have a Typed DataSet. I've databinded it to some text controls on my form, controls show data when I show record. But now I would like to create a new record with this form, controls...
7
by: Joe | last post by:
Hello All: I am trying to use the Enterprise Libraries created by Microsoft to update a DB2 database and am stuck. I need to be able to Insert, Update and Delete records from the DB2 datbase...
2
by: Kausar | last post by:
Hello All, My question is in what scenerio we should use DAAB? we are going to develop a enterprise Web Application in .Net Framework 2.0 which contains approx 200 tables. Is it sensible to use...
5
by: Dick | last post by:
I have a .net 2005 class library project that relies upon the Data Access Application Block from the 2006 Enterprise Library. I want to call my project from a legacy VB6 application. Simple...
5
by: Monty M. | last post by:
Hello; I was wondering if anyone can assist me with this problem. Here are the tools I am using: Language: C# Database: MS SQL Server 2000 Application: Visual Studio 2005 1. I have a...
6
by: Dhananjay | last post by:
hello everyone i have got a problem i want to design business layer, data access layer , presentation layer for asp.net using C#.net , can anyone help me to solve this problem. i want some...
0
by: Dharmen Patel | last post by:
I am using Enterprise Library 2006 , Data Access Application Blocks. 1. I am connecting to Oracle 9i database using DAAB. 2. I retrieve a dataset using the following code in VB.NET. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.