📄 index.htm
字号:
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="stylesheet" type="text/css" href="MSDN.css" />
<title>EasyObjects.NET</title>
</head>
<body>
<!--NONSCROLLING BANNER START-->
<div id="nsbanner">
<div id="bannerrow1">
</div>
<div id="titleRow" style="padding-left: 22px; padding-right: 10px; padding-top: 0px; padding-bottom: 0px">
<h1 class="dtH1">EasyObjects.NET</h1>
</div>
</div>
<!--NONSCROLLING BANNER END-->
<div id="nstext" style="overflow: auto; top: 0px; padding-right: 20px" valign="bottom">
<p>Based on
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/entlib.asp">
Microsoft's Enterprise Library </a>and
<a href="http://www.mygenerationsoftware.com/portal/dOOdads/Overview/tabid/63/Default.aspx">
MyGeneration's dOOdads</a>, EasyObjects.NET simplifies
development tasks that implement common data access functionality.
Applications can use EasyObjects.NET in a variety of situations,
such as reading data for display, passing data through application
layers, and submitting changed data back to the database system.
EasyObjects.NET includes support for both stored procedures and
in-line SQL, connection management, transaction management, null-value
handling and
dynamic query creation. In other words, EasyObjects.NET encapsulates
features often overlooked by developers in
simple-to-use classes, boosting developer productivity.</p>
<p>EasyObjects.NET provides classes such as the <b>DynamicQuery</b>
class which helps to abstract the query mechanism from
any particular database implementation. The application developer can take advantage of
this class to build dynamic queries without having to learn
database-specific query language constructs. This allows applications to be
ported from one database type to another without modifying the client
code, or rewriting all the custom queries. The code for applications
written for one type of database, such as SQL Server, looks much the
same as the code for applications written for another type of database,
such as Oracle. EasyObjects.NET includes dynamic query providers for SQL
Server and Oracle, but developers can add custom providers and more will
be added in the future.</p>
<p>Another feature of EasyObjects.NET is that application code can refer
to particular databases by a configuration
connection string name, such as "DEV" or "PROD." The
application code can specify a named instance of a database by setting the
<b>EasyObject.DatabaseInstanceName</b> property. Each
named database has its connection information stored in a configuration
file. Changing the settings in the configuration file allows developers
to use their applications with different database configurations,
without having to recompile their code.</p>
<p>EasyObjects.NET provides the following benefits:</p>
<ul>
<li>It leverages the features and functionality provided by the Data
Access Application Block of the Enterprise Library.
</li>
<li>It eliminates the need to write boilerplate code to perform
standard tasks.
</li>
<li>In conjunction with code generation, it helps maintain consistent data access practices, both within
an application and across the enterprise.
</li>
<li>It provides a consistent approach to writing application data
and business object layers.</li>
<li>It reduces application development and maintenance cycles.</li>
<li>It reduces difficulties in changing the database type.
</li>
<li>It relieves developers from learning different programming
models for different types of databases.
</li>
<li>It reduces the amount of code that developers must write when
they port applications to different types of databases. </li>
</ul>
<h1 class="heading"> </h1>
<h1 class="heading">Common Scenarios</h1>
<p>Developers often write applications that use databases. Because it is
so common, developers may find themselves writing the same code over and
over for each application. In addition, developers sometimes overlook
advanced features such as connection management different types of databases. Although the tasks are the same,
the code must be adapted to suit the programming model of each database.
EasyObjects.NET solves these problems by providing the
logic to perform the most common data access tasks, while incorporating
and simplifying advanced features. Developers only need
to do the following:</p>
<ul>
<li>Create the five standard stored procedures (select one, select
all, insert, update, delete) for the database table.</li>
<li>Create the business entity object abstract class and concrete
class for the database table.
</li>
<li>Call the appropriate method(s). These methods are optimized for
performance. They are also portable.</li>
</ul>
<p>EasyObjects.NET works transparently with SQL Server
and Oracle databases. </p>
<h1 class="heading"> </h1>
<h1 class="heading">Audience Requirements</h1>
<p>This guide is intended for software architects and software
developers. To benefit fully from this guide, you should have an
understanding of the following technologies:</p>
<ul>
<li>Microsoft
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -