index > Visual Studio Guidance Automation Toolkit > Help me decide: how to generate my Data Access Layer ( please :)

Help me decide: how to generate my Data Access Layer ( please :)

Hello,

In lue of ado.net vNext, I'm trying to figure out how to generate data access libarary for my C# project.

I would like to take a step by step approach:

1. Generate wrappers for my stored proces.

2. Generate data object classes (entity classes) from xml schema file.

3. Define mapping between the data object classes attributes and some how automate the population of the data objects.

4. I'd like to do most of this from the command line (I'd want to run it during the build).

Are there GAT code snippets out there that achieve any of these steps.

Where should I start?

Thanks

Houman

PS. I can't use datasets

Houman b

Hi Houman -

Check out the Web Service Software Factory, available from http://msdn.microsoft.com/servicefactory. It does the majority of the things you've listed and is built on GAT/GAX.

Hope this helps

Tom

Tom Hollander

Thanks for the recommendation, I've seem a webcast of the service factory...

Tom, are you saying that I can take the service factory apart and only use a part of it? Is the service factory code 'open source'? In other words could I just use some of the recipies in the factory to make my own factory?

Because I don't want to use the service factory...it is too invovled for what I want to do...

Regards,

Houman

Houman b

Hi Houman -

Yes the Service Factory ships with full source code, and you are free to customize it as much as you want. However you may not even need to do that, as the ASMX Service Interface and Data Access functionality are packaged as two distinct guidance packages within the Service Factory. By default we enable both of them when you start a new service-based application, but you can choose to enable just one or the other. So if you only care about data access, you should be fine to just enable the Data Access guidance package.

Hope this helps

Tom

Tom Hollander

Thanks Tom! I'll download it and try it...

Unfortunately, whenever I press markasanswer i get an error...I'll try later :-)

Regards,

Houman

Houman b
reply 5

You can use google to search for other answers

 

More Articles

• Registering guidance with the experimental hive
• Examining the items in a solution
• How do you pass arguments from previous wizard pages
• Upgrading Headaches
• Download not available
• Can't download GAT, GAX?
• Exception thrown on Register SCSF
• How is GAT Package information persisted?
• How to create a local method in a T3 script.
• Loosing Item Template Information
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• How to execute actions after solution te
• Getting the project object after Add New
• Error unfolding a project template
• VSTS - Web Test - FIND TEXT command
• HoL Registration failed
• How do you enable delay signing on a web
• Where can I get December 2005 version now?
• June 2006 CTP and Hands On Lab
• Can't download GAT, GAX?
• GuidancePackage Solution Will Not build
• Update guidance already installed
• How to Add Fixed Assets in GAT?
• Can you build a guidance package in VB?
• Problem Loading Package
• HoLPackage Registration menu disappear

Hot Articles

• Guidance Package Build
• Advice needed: What technology/kit/etc t
• enable GAT for existing projects
• Slow Wizard Input using MonitorArgument
• Is GAT/GAX compatible with non-English v
• CAB Module menu item doesn't run
• Issue passing input parameters to actions
• Is there a way to use the T3 engine as a
• Problem Loading Package
• How to gather data without wizard
• Project References Guids?
• Future Roadmap for GAT
• Fail to register Guidance Package from S
• Will we see an updated GAT Toolkit soon?
• Calling a recipe inside another recipe???

Recommend Articles

• Visual Studio hangs when I install the T
• Future Roadmap for GAT
• How do you include a folder that has bee
• Has anyone written a MSI bootstrapper fo
• Trying to add a new class to the Referen
• Trusted Assembly referenace Problem
• GAT Custom Directive Processor
• How to Create Project Reference and App_
• Nested Project Templates
• Unable to install GAX June CTP - States
• Passing custom objects to t4 templates
• Problem Loading Package
• Error while unistalling Guidance Automat
• June GAT Installation Issues
• Support for Web Application Project