IBatis. NET Development Learning Note ——. NET development environment Building

Source: Internet
Author: User
Tags log4net

Hello everyone, today is the Web application configuration, as for Windows applications or other types of solutions can be the same configuration, the Web application configuration file for the Web.config,windows application is app. config.

You can create your own environment by following these steps:

1, first of all, definitely open visual Studio (the article after the abbreviation VS), if you have other tools to develop, I do not mind, anyway I use Vs,vs current version is 2013, but I like retro, so, I currently use to install VS2010 as a tutorial, no matter how many versions are currently, Can be obtained in the same vein.

2. Then, create a new Web application

3. Delete the items that are superfluous (I think superfluous, if you want to retain nothing):

4, for convenience, it is best to delete default.aspx, and then re-add a new Web item name is also called Default.aspx:

5, now has set up a nice small environment, The following will be our beloved ibatis.net integrated into, there are two ways, the official release of two versions, because it is open source, so you can download the source itself to modify the structure of their own (but I will tell you, novice best not do anything), and then compile to build the DLL binary files. There is also a direct download of the official binaries (that is, I am in Chapter Ibatis. NET Development Study notes-A brief introduction of what I contribute), either way, anyway you will get the DLL binaries, and then we put the binaries in the Web bin directory below:

①ibatis.dataaccess.1.9.2.bin.rar files that are included after decompression

②ibatis.datamapper.1.6.2.bin.rar unzip the Include file

There are still a lot of duplicate files, we explain the most important documents:

/tr>

file name

Description

Castle.DynamicProxy.dll

Proxy framework for connecting each Database, NHibernate also uses

IBatisNet.Common.dll

A shared assembly consisting of DataAccess and datamapper

IB AtisNet.Common.Logging.Log4Net.dll

Log4net integrated logger, and log4net with

IBatisNet.DataMapper.dll

D Atamapper Main frame

IBatisNet.DataAccess.dll

DataAccess frame

Where three of the major assemblies are added to the solution we just built

IBatisNet.DataMapper.dll

IBatisNet.Common.dll

Castle.DynamicProxy.dll

If you need logging recommendations, put IBatisNet.Common.Logging.Log4Net.dll under the web's Bin directory and add to the reference:

Because I'm going to use the log4net to log the logs, so I added them and added them all to the reference, here I want to emphasize, because we now only have one webapplication This project, so, References are also added directly to this project, if you have a class library or other architecture (MVC, Factory mode, etc.) that can be put into the Bin directory of the appropriate data access interface .

Not yet, next time we will focus on "configuring Datamapper for. Net", quietly telling you that the following files will be:

These three schemas are added to the

C:\Program Files\Microsoft Visual Studio 10.0\xml\schemas

This is my VS2010 installation path, you may have a slightly different, you can appear in the XML document editing when there will be VS2010 Smart tips Oh!

These tips appear in the location, I will appear in subsequent chapters, please pay attention to ^_^!

Reprint please indicate the source

IBatis. NET Development Learning Note ——. NET development environment Building

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.