Solved

About build provider

Posted on 2011-09-23
3
287 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
asp.net mvc5 6 30
call a controller action method from Global.asax in asp.net 1 28
Where is this file? 3 33
c#, datatable, aspx 4 27
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

696 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