123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Runtime.CompilerServices;
- using System.Text;
- using System.Threading.Tasks;
- namespace GDNXFD.Data
- {
- // CREATE TABLE "SA"."DATADICTIONARY"
- // ( "ID" NUMBER NOT NULL ENABLE,
- //"CATEGORY" VARCHAR2(50) NOT NULL ENABLE,
- //"CODE" VARCHAR2(50) NOT NULL ENABLE,
- //"NAME" VARCHAR2(50) NOT NULL ENABLE,
- //"ORDERNO" NUMBER(10,0) DEFAULT 0 NOT NULL ENABLE,
- //"ENABLED" NUMBER(1,0) DEFAULT 1 NOT NULL ENABLE
- // ) SEGMENT CREATION IMMEDIATE
- // COMMENT ON COLUMN "SA"."DATADICTIONARY"."CATEGORY" IS '类型';
- // COMMENT ON COLUMN "SA"."DATADICTIONARY"."CODE" IS '编码';
- // COMMENT ON COLUMN "SA"."DATADICTIONARY"."NAME" IS '名称';
- // COMMENT ON COLUMN "SA"."DATADICTIONARY"."ORDERNO" IS '顺序号';
- // COMMENT ON COLUMN "SA"."DATADICTIONARY"."ENABLED" IS '是否有效';
- [Table("DATADICTIONARY")]
- public class DictItem : INotifyPropertyChanged
- {
- private long _id;
- private string _category;
- private string _code;
- private string _name;
- private int _orderno;
- private bool _enabled;
- [Column("ID")]
- public long Id
- {
- get { return _id; }
- set
- {
- _id = value;
- RaisePropertyChanged();
- }
- }
- [Column("CATEGORY")]
- public string Category
- {
- get { return _category; }
- set
- {
- _category = value;
- RaisePropertyChanged();
- }
- }
- [Column("CODE")]
- public string Code
- {
- get { return _code; }
- set
- {
- _code = value;
- RaisePropertyChanged();
- }
- }
- [Column("NAME")]
- public string Name
- {
- get { return _name; }
- set
- {
- _name = value;
- RaisePropertyChanged();
- }
- }
- [Column("ORDERNO")]
- public int OrderNo
- {
- get { return _orderno; }
- set
- {
- _orderno = value;
- RaisePropertyChanged();
- }
- }
- [Column("ENABLED")]
- public bool Enabled
- {
- get { return _enabled; }
- set
- {
- _enabled = value;
- RaisePropertyChanged();
- }
- }
- /// <summary>
- /// Property changed event
- /// </summary>
- public event PropertyChangedEventHandler PropertyChanged;
- private void RaisePropertyChanged([CallerMemberName] string caller = "")
- {
- if (PropertyChanged != null)
- {
- PropertyChanged(this, new PropertyChangedEventArgs(caller));
- }
- }
- }
- }
|