Solved

About build provider

Posted on 2011-09-23
3
280 Views
Last Modified: 2012-05-12
Hi I am not quite sure about the purpose and meaning of "build provider". Please use the plain language to explain it. Please don't just provide a msdn link, it is not helpful.

My understanding is that build provider is just for intellisense convenience. Right?
0
Comment
Question by:zhshqzyc
  • 2
3 Comments
 
LVL 13

Expert Comment

by:khairil
ID: 36589332
Hi,

In simple words. Build Provider builds code from given XML or other files. Like example you have metadata of a table name Customers and fields define to customer attributte like Name, Age, and also operation that can be done to the table like INSERT, SELECT, UPDATE and DELETE statement. The description of all this is written by VS in plain XML file.

Build Provider than read this file and create code that represent structure of Customer table as properties and operation as method. The code is usually a class in case of database table.  So then you can create instance of Customer class, defined all parameters and call method to save it.

Since in this case Build Provider create a class, Intellisence of VS will pick up that class information and list all the properties and method of the instances of the class when we do programming.

In other words Intellisense not really related to Build Provider. Intellisense just helper for US to reduce typing when creating instances of class build by Build Provider.

Build Provider not just of describing table stucture to class like ORM but also use by compiler to generate code from VS project files.

In most of the time, you should not worry how Build Provider works. Just concentrate on defining the structure of your class, Build Provider will generate code for you and Intellisense will make your life easier.

I hope I have simplified desribing what Build Provider is, in a plain words like you need.

0
 

Author Comment

by:zhshqzyc
ID: 36589748
Thank you so much for so many input. The question what I am confused is that do I need to create my own build provider dll then add it to the web site and modify the web.config file?
0
 
LVL 13

Accepted Solution

by:
khairil earned 250 total points
ID: 36591135
No. You do not need to. MS have use the Build Provider when you build an application.

Personally,I do not think that there is a need for build provider to read web.config, it is handle by .net framework already. Can still can change the web.config to your need but make sure you not broken it.

What you need to concern is create your web application -> take build for the menu & test it. If all OK then take publish command to push your web application to the web server. That all you need, of course it will be different for database project, you need to have database in place before publishing it.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now