IBatis. NET Development Study Notes & mdash;. NET Development Environment setup, ibatis Study Notes

Source: Internet
Author: User
Tags log4net

IBatis. NET Development Learning notes --. NET Development Environment setup, ibatis learning notes

Hello, what we bring to you today is web application configuration. For windows applications or other types of solutions, the configuration can be the same, and the web application configuration file is web. config. The windows application is an app. config.

Follow these steps to create your own environment:

1. First, you must open Visual Studio (VS for short). If you have other tools for development, I don't mind. Anyway, I use VS. The latest version of VS is 2013, however, I like retro, So I currently use VS2010 as a tutorial, regardless of the current version, you can get it in the same way.

2. Create a new Web Application

3. Delete unnecessary items (I think they are redundant. If you want to retain them, it will not affect your project:

4. For convenience, it is best to delete Default. aspx and add a new Web item named Default. aspx:

5. Now we have set up a good environment. Next we will take our beloved iBATIS. NET integration. There are two methods. Two official versions are released, because they are open-source, so you can download the source code and modify it into the desired structure (but I will tell you,) and compile the dll binary file. Another way is to download the official binary file directly (that is, in the IBatis section. NET Development Learning notes-Brief introduction to my contribution), no matter which method, you will get the dll binary file, and then we put the binary file under the Bin directory of the Web:

Unzip ibatis.dataaccess.1.9.2.bin.rar

Unzip ibatis.datamapper.1.6.2.bin.rar to decompress the file.

There are still a lot of duplicate files. Let's explain the most important files:

File Name

Description

Castle. DynamicProxy. dll

Proxy framework, used to connect to various databases, and nhib.pdf is also used

IBatisNet. Common. dll

Shared Assembly composed of DataAccess and DataMapper

IBatisNet. Common. Logging. Log4Net. dll

Log4Net integrated recorder, used with Log4Net

IBatisNet. DataMapper. dll

Main DataMapper framework

IBatisNet. DataAccess. dll

DataAccess framework

Add and reference the three main assembly to the solution we just created.

IBatisNet. DataMapper. dll

IBatisNet. Common. dll

Castle. DynamicProxy. dll

If you need log records, we recommend that you put IBatisNet. Common. Logging. Log4Net. dll under the Bin directory of the Web and add it to reference:

Because I want to use Log4net to record logs, I have added them and added them to references. Here I want to emphasize,Because we only have oneWebApplicationTherefore, the reference is directly added to this project. If you have a class library or other architecture (MVC, Factory mode, etc.) can be placed in the corresponding data access interfaceBinDirectory.

We will focus on "Configure DataMapper for. NET" next time. We will tell you quietly that we will:

Add the three Schemas

C: \ Program Files \ Microsoft Visual Studio 10.0 \ Xml \ Schemas

This is my VS2010 installation path. You may have some differences, so there will be a smart prompt for VS2010 when editing the XML document!

The location of these prompts will appear in subsequent chapters. Stay tuned to ^_^!

Reprinted please indicate the source
How to Build the net development environment in Win7? What development tools are needed?

Hello, you need a development language. Microsoft Visual Studio 2005, Microsoft Visual Studio 2008, or Microsoft Visual Studio 2010 can be used in various development languages. We recommend that you use Microsoft Visual Studio 2010, you can also use SQL Server version 2000, 2005, or 2008. You can use or as a development tool. If you need to release SQL Server, you cannot do without IIS, IIS6.0 comes with win7. You can publish it directly. If you need code management, you can use SVN, VSS, and many other team-managed tools, I hope my answers will help you.

What is needed to build the net development environment?

If the development environment is installed, it is enough to Install SQL server 2005 and VS 2005. If it is a development network

IIS5.1 (XP system) must be installed first.

Then I personally think that SQL server 2005 is installed first, Because SQL

Many errors are reported during server 2005. And it's very troublesome. You can only pray that you don't get an error. Otherwise, you have

Uninstall and try again.

I installed SQL server2005 on the internet, and I installed it N times.

Related Article

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.