NBearLite Version 1.0.1.5 beta
-------------------------------
Author: Teddy (shijie.ma@gmail.com)
Official Site: http://nbear.org
Open Source License: BSD
Copyright: 2007-2010
Release Notes
-------------
Version 1.0.1.5 beta
1) Add Alias() and Select() for select on SubQuery support.
e.g.
DataSet ds = db.Select(Northwind.Categories,
(Northwind.Categories.CategoryID + 1).Alias("ID"),
(Northwind.Categories.CategoryName + "_teddy").Alias("Name"))
.SetSelectRange(10, 0, Northwind.Categories.CategoryID)
.ToSubQuery()
.Alias("Top10Cats")
.Select(new QueryColumn("ID", DbType.Int32),
new QueryColumn("Top10Cats.Name", DbType.String))
.Where(new QueryColumn("Top10Cats.ID", DbType.Int32) > 0 &&
new QueryColumn("Name", DbType.String).Trim().Length > 8)
.ToDataSet()
Version 1.0.1.4 beta
1) Fix bug in ExpressionClip.Trim() method.
Version 1.0.1.3 beta
1) Fix bug in Load AdditionalDbProviders Assembly in some environments.
Version 1.0.1.2 beta
1) Fix bug in Batch Insert.
2) Add ExpressionClip.Alias() method to support column alias.
3) Fix bug when using cloumn alias in MsAccess provider.
4) Fix bug in using AddtionalDbProviders in websites.
5) Add the NBearLite PetShop 4.0 Sample.
Version 1.0.1.1 beta
1) Add ToSingleObject(viewName) and ToList(viewName) methods to SelectSqlSection class to
Support NBearMapping's mapping by viewName function.
2) Add ToDbCommandText() method to SelectSqlSection class to support generate SQL text from
strong typed query, you can use this function to generate SQL texts instead of write them manually.
Version 1.0.1.0 beta
1. Fix bug in "select distinct top" style query.
2. Fix bug in SQLServer2005 provider's "select range" style query.
3. Add "select output file encoding" support.
4. Integrate with NBear.Core and NBear.Mapping shared components.
5. Add ToSingleObject() and ToList() methods to SelectSqlSection class to support strong typed
query result.
Version 1.0.0.9 beta
1. Fix bug of getting oracle table and view info in QueryColumnsGenerator.exe tool.
2. Change the NBearLite_Documentation format from chm to general HTML to prevent some operation
system's could not open it issue.
Version 1.0.0.8 beta
1. Fix type cast bug when QueryColumnsGenerator.exe generated out parameter value is dbnull.
2. Enhance QueryColumnsGenerator.exe to generate one more method for each stored procedure with
a DbTransaction tran parameter.
Version 1.0.0.7 beta
1. Fix bug in Aggregation select.
2. Provide Chinese version full documentation of NBearLite in doc folder.
Version 1.0.0.6 beta
1. Add ToDbCommand() method to InsertSqlSection/UpdateSqlSection/DeleteSqlSection classes.
2. Add 8 Save() method overridens to Database class to support DataTable/DataRows saving.
e.g. Sample Save code:
SelectSqlSection selectSection = db.Select(Northwind.Categories)
.Where(Northwind.Categories.CategoryID == catID)
.OrderBy(Northwind.Categories.CategoryID.Desc)
.SetSelectRange(1, 0, Northwind.Categories.CategoryID);
DataTable dt = selectSection.ToDataSet().Tables[0];
dt.Rows[0]["CategoryName"] = "modified";
//save a modified row
db.Save(selectSection.ToDbCommand(), 10, dt);
dt.Rows[0]["CategoryName"] = "modified2";
DataRow newRow = dt.NewRow();
newRow["CategoryName"] = "new";
dt.Rows.Add(newRow);
//save 1 modified row and insert a new row
db.Save(selectSection.ToDbCommand(), tran, 0, dt.Rows[0], dt.Rows[1]);
Version 1.0.0.5 beta
1. Add ToDbCommand() method to SelectSqlSection class.
e.g. We can use database.Select(Northwind.Categories).ToDbCommand();
2. Enhance strong type query with sub query support. Add ToSubQuery()
method to SelectSqlSection class.
e.g. Sample strong type query with sub queries:
DataSet ds = db.Select(Northwind.Products)
.Where(Northwind.Products.CategoryID.In
(
db.Select(Northwind.Categories, Northwind.Categories.CategoryID).SetSelectRange(10, 0, Northwind.Categories.CategoryID).ToSubQuery())
)
.ToDataSet();
ds = db.Select(Northwind.Products)
.Where(Northwind.Products.CategoryID ==
(
db.Select(Northwind.Categories, Northwind.Categories.CategoryID).SetSelectRange(1, 0, Northwind.Categories.CategoryID).ToSubQuery())
)
.ToDataSet();
Version 1.0.0.4 beta
1. Enhanced NBearLite.QueryColumnsGenerator to generate Stored Procedure
Wrapper methods for SqlServer, Oracle, MySql and PostgreSql databases.
Version 1.0.0.3 beta
1. Fix bug in PostgreSql DbProvider.
Version 1.0.0.2 beta
1. Fix bug in preview version.
2. Add PostgreSql DbProvider in NBearLite.AdditionalDbProviders.dll.
3. Release as the first beta version.
Version 1.0.0.0 preview
1. Release the initial preview version.
Introdution Q & A
-----------------
Q: What is NBearLite?
A: NBearLite is a .NET 2.0 data access component which supports MsAccess, SqlServer, Oracle, Sqlite, MySql, PostgreSql databases.
Q: Is NBearLite an O/R Mapping component?
A: No.
Q: Then what are the main features of NBearLite?
A: With NBearLite, you can transparently query databases by a strong type query language similar to LINQ.
The strong type query language provided by NBearLite supports not only basic CRUD but also complex select
queries with ORDER BY, GROUP BY, PAGING, INNER JOIN, BATCH OPERATION...- Most common database operations
we may met in our development life, which significantly simplifies database operations from our .Net code
and saves our development time. The select query of NBearLite returns Scalar, DataSet or IDataReader.
Q: Is NBearLite easy to use?
A: Yes, super easy. You can easily reference NBearLite.dll, use NBearLite.QueryColumnsGenerator.exe tool
provided by together with NBearLite.dll to generate QueryColumns code from existing database and then
freely query your database through NBearLite's strong type query language. Please check code in NBearLite.Test
project for basic usage. NBearLite.QueryColumnsGenerator itself is a sample WinForm application using NBearLite.
More tutorials is incoming.
Q: What is the relation of NBearLite and NBear?
A: NBearLite is maintained by NBear team. It shares the DbProvider and query kernalcode of NBear but provides
cleaner namespaces, code structure and more powerful data access fucntions working with ADO.NET build-in DataSet
instead of Entity classes in NBear. Yes, to begin from NBearLite, there is no need to write any entity classes or
entity configurations.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
NBearLite是NBearV4的几个核心组件之一,也是目前NBearV3中ORM部分的查询语法的核心。NBearLite本身并不是一个完整的ORM解决方案,配合目前Teddy正常开发的NBearMapping组件使用(某个中间组件过渡),组成一套完整强大的ORM解决方案。NBearLite的目标是提供一种SQL语句和存储过程透明的方便快捷,面向对象化的数据库操作,专门负责SQL语句生成,数据库连接管理,事务管理,参数管理,提供各种查询接口。
资源推荐
资源详情
资源评论
收起资源包目录
NBearLite_v1.0.1.5.zip (73个子文件)
BSD.license 2KB
src.zip 396KB
dist
NBearLite.AdditionalDbProviders.dll 12KB
NBearLite.pdb 212KB
NBear.Mapping.dll 44KB
Mono.Security.dll 276KB
NBearLite.AdditionalDbProviders.pdb 30KB
NBear.Mapping.pdb 96KB
Npgsql.dll 236KB
NBearLite.QueryColumnsGenerator.exe 52KB
NBearLite.QueryColumnsGenerator.pdb 44KB
System.Data.SQLite.xml 157KB
NBearLite.dll 84KB
System.Data.SQLite.dll 563KB
NBearLite.XML 55KB
NBear.Mapping.xml 25KB
NBearLite.AdditionalDbProviders.XML 2KB
MySql.Data.dll 260KB
NBear.Core.dll 60KB
Npgsql.xml 150KB
MySql.Data.txt 4KB
NBear.Core.pdb 134KB
readme.txt 6KB
doc
NBearLite API Documentation.chm 1.17MB
NBearLite_Documentation.html 345B
src
NBearLite_doc.ndoc 1KB
NBearLite_Documentation.hmx 119KB
images
QueryColumnsGeneratorScreen.jpg 189KB
NBearLite_Documentation
customsqlstoredprocedurequery.htm 5KB
references.htm 5KB
appendix.htm 3KB
nbearlitequery.htm 5KB
othernonstrongtypequeries.htm 5KB
nbearmapping.htm 3KB
createdatabaseobject.htm 6KB
nbearlite_documentation_ftsearch.html 2KB
nbearlite_documentation_content_static.html 11KB
generatequerycolumnsusingquerycolumnsgenerator.htm 3KB
zoom_search.js 25KB
select.htm 18KB
insertupdatedelete.htm 3KB
cicon2.gif 918B
configurateconnectionstrings.htm 7KB
cicon_loadindex_ani.gif 3KB
enumdescriptionattribute.htm 2KB
introduction.htm 4KB
zoom_titles.js 739B
cryptographymanager.htm 3KB
aboutreturnlastinsertautoid.htm 3KB
zoom_index.js 36KB
zoom_descriptions.js 6KB
highlight.js 7KB
querycolumnsgeneratorscreen.jpg 189KB
nbearlitesupportdatabases.htm 2KB
zoom_pages.js 803B
viewruntimesqllog.htm 3KB
batch.htm 5KB
settings.js 2KB
nbearlite_documentation_content_dyn.html 14KB
nbearlite_documentation_navigation.js 6KB
releasenotes.htm 6KB
index.html 1KB
development.htm 3KB
NBearLite_Documentation_popup_html.js 2KB
cicon9.gif 908B
transaction.htm 6KB
othermiscclasses.htm 3KB
strongtypequerylanguage.htm 8KB
default.css 1020B
nbearlite10minutestutorial.htm 9KB
save_datatabledatarow.htm 6KB
nbearlitenbearmappingperformancetest.htm 5KB
cicon1.gif 899B
共 73 条
- 1
资源评论
- liuxingjin5321242012-10-28能够有效地帮助我们了解NBearLite的架构,及相关技术。
hualinapec
- 粉丝: 2
- 资源: 47
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于JSP水产品销售系统源码.zip
- 基于JSP手机商城管理系统源码.zip
- 5.3.1_1二叉树的先中后序遍历.mp420240404-134540.png
- 基于JSP实现一个C语言教学网站平台源码.zip
- 抖音快手-课程网盘链接提取码下载 .txt
- 934742083249391XGOBOTV1.2.4.apk
- 课程设计基于OpenCV的材料缺陷检测程序python源码(含超详细注释).zip
- 基于python和百度EsayDL实现自动驾驶算法+基于ESP32开发板作为智能车主控芯片的自动驾驶智能车项目+源码(高分项目)
- Centos7-离线安装-MySQL5-7-31-tar包安装
- 蓝海平台带货-课程网盘链接提取码下载 .txt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功