云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > Hxj.Data 数据库组件文档

Hxj.Data 数据库组件文档

  • 62 次阅读
  • 3 次下载
  • 2025/5/5 1:10:29

目前支持Sql2000\\2005,MsAccess,Oracle,SQLite,MySQL,如有需要可再扩展。

数据库实体生成的代码Northwind数据库中Products表:

//------------------------------------------------------------------------------ // // 此代码由工具生成。

// 运行时版本:2.0.50727.4200 //

// 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 //

//------------------------------------------------------------------------------

using System; using System.Data;

using System.Data.Common; using Hxj.Data;

using Hxj.Data.Common;

namespace Hxj.Model {

///

/// 实体类Products 。(属性说明自动提取数据库字段的描述信息) ///

[Serializable]

public class Products : Entity {

public Products():base(\) {}

#region Model

private int _ProductID; private string _ProductName; private int? _SupplierID; private int? _CategoryID;

private string _QuantityPerUnit; private decimal? _UnitPrice; private int? _UnitsInStock; private int? _UnitsOnOrder; private int? _ReorderLevel; private bool _Discontinued; ///

///

5

///

public int ProductID {

get{ return _ProductID; } set {

this.OnPropertyValueChange(_.ProductID,_ProductID,value); this._ProductID=value; } }

///

///

///

public string ProductName {

get{ return _ProductName; } set {

this.OnPropertyValueChange(_.ProductName,_ProductName,value); this._ProductName=value; } }

///

///

///

public int? SupplierID {

get{ return _SupplierID; } set {

this.OnPropertyValueChange(_.SupplierID,_SupplierID,value); this._SupplierID=value; } }

///

///

///

public int? CategoryID {

get{ return _CategoryID; } set {

this.OnPropertyValueChange(_.CategoryID,_CategoryID,value); this._CategoryID=value;

6

} }

///

///

///

public string QuantityPerUnit {

get{ return _QuantityPerUnit; } set {

this.OnPropertyValueChange(_.QuantityPerUnit,_QuantityPerUnit,value); this._QuantityPerUnit=value; } }

///

///

///

public decimal? UnitPrice {

get{ return _UnitPrice; } set {

this.OnPropertyValueChange(_.UnitPrice,_UnitPrice,value); this._UnitPrice=value; } }

///

///

///

public int? UnitsInStock {

get{ return _UnitsInStock; } set {

this.OnPropertyValueChange(_.UnitsInStock,_UnitsInStock,value); this._UnitsInStock=value; } }

///

///

///

public int? UnitsOnOrder {

get{ return _UnitsOnOrder; }

7

set {

this.OnPropertyValueChange(_.UnitsOnOrder,_UnitsOnOrder,value); this._UnitsOnOrder=value; } }

///

///

///

public int? ReorderLevel {

get{ return _ReorderLevel; } set {

this.OnPropertyValueChange(_.ReorderLevel,_ReorderLevel,value); this._ReorderLevel=value; } }

///

///

///

public bool Discontinued {

get{ return _Discontinued; } set {

this.OnPropertyValueChange(_.Discontinued,_Discontinued,value); this._Discontinued=value; } }

#endregion

#region Method ///

/// 获取实体中的标识列 ///

public override Field GetIdentityField() {

return _.ProductID; }

///

/// 获取实体中的主键列 ///

public override Field[] GetPrimaryKeyFields()

8

搜索更多关于: Hxj.Data 数据库组件文档 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

目前支持Sql2000\\2005,MsAccess,Oracle,SQLite,MySQL,如有需要可再扩展。 数据库实体生成的代码Northwind数据库中Products表: //------------------------------------------------------------------------------ // // 此代码由工具生成。 // 运行时版本:2.0.50727.4200 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // //------------------------------------

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com