1:  //
   2:  // Machine Generated Code
   3:  //   by devel at 7/19/2012 12:12:39 AM
   4:  //
   5:   
   6:  using System;
   7:  using System.Collections.Generic;
   8:  using System.Text;
   9:  using System.Data;
  10:  using System.Drawing;
  11:  using Sys.Data;
  12:  using Sys.Data.Manager;
  13:   
  14:   
  15:  namespace Sys.Foundation.DpoClass
  16:  {
  17:      [Revision(12)]
  18:      [Table("sys00102", Level.System)]    //Primary Keys = Role_ID;  Identity = ;
  19:      public class RoleDpo : DPObject
  20:      {
  21:   
  22:  #pragma warning disable
  23:   
  24:          [Column(_Role_ID, SqlDbType.Int, Primary = true)]                                         public int Role_ID;           //int(4) not null
  25:          [Column(_Role_Name, SqlDbType.NVarChar, Length = 256)]                                    public string Role_Name;      //nvarchar(256) not null
  26:          [Column(_Parent_Role_ID, SqlDbType.Int, Nullable = true)]                                 public int? Parent_Role_ID;   //int(4) null
  27:          [Column(_Description, SqlDbType.NVarChar, Nullable = true, Length = 1024)]                public string Description;    //nvarchar(1024) null
  28:   
  29:  #pragma warning restore
  30:   
  31:          public RoleDpo()
  32:          {
  33:          }
  34:   
  35:          public RoleDpo(DataRow dataRow)
  36:              :base(dataRow)
  37:          {
  38:          }
  39:   
  40:   
  41:          public RoleDpo(int role_id)
  42:          {
  43:             this.Role_ID = role_id; 
  44:   
  45:             this.Load();
  46:             if(!this.Exists)
  47:             {
  48:                this.Role_ID = role_id;     
  49:             }
  50:          }
  51:          
  52:   
  53:   
  54:          protected override int DPObjectId
  55:          {
  56:              get
  57:              {
  58:                  return this.Role_ID;
  59:              }
  60:          }
  61:   
  62:   
  63:   
  64:          public override PrimaryKeys Primary
  65:          {
  66:              get
  67:              {
  68:                  return new PrimaryKeys(new string[]{ _Role_ID });
  69:              }
  70:          }
  71:   
  72:   
  73:   
  74:          public override IdentityKeys Identity
  75:          {
  76:              get
  77:              {
  78:                  return new IdentityKeys();
  79:              }
  80:          }
  81:          
  82:   
  83:          public static string TABLE_NAME
  84:          { 
  85:              get
  86:              {
  87:                return new RoleDpo().TableName.FullName;
  88:              }
  89:          }
  90:   
  91:   
  92:   
  93:          #region CONSTANT
  94:   
  95:          public const string _Role_ID = "Role_ID";
  96:          public const string _Role_Name = "Role_Name";
  97:          public const string _Parent_Role_ID = "Parent_Role_ID";
  98:          public const string _Description = "Description";
  99:   
 100:         
 101:          #endregion 
 102:   
 103:   
 104:   
 105:      }
 106:  }
 107:   
<!-- .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } -->

Last edited Jan 19, 2013 at 4:34 PM by fjiang2, version 1

Comments

No comments yet.