Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.98 KB | None | 0 0
  1.  [EdmEntityTypeAttribute(NamespaceName="TestModel", Name="ModuleInfo")]
  2.     [Serializable()]
  3.     [DataContractAttribute(IsReference=true)]
  4.     public partial class ModuleInfo : EntityObject
  5.     {
  6.         #region Factory Method
  7.    
  8.         /// <summary>
  9.         /// Create a new ModuleInfo object.
  10.         /// </summary>
  11.         /// <param name="id">Initial value of the ID property.</param>
  12.         /// <param name="isMain">Initial value of the IsMain property.</param>
  13.         public static ModuleInfo CreateModuleInfo(global::System.Int32 id, global::System.Boolean isMain)
  14.         {
  15.             ModuleInfo moduleInfo = new ModuleInfo();
  16.             moduleInfo.ID = id;
  17.             moduleInfo.IsMain = isMain;
  18.             return moduleInfo;
  19.         }
  20.  
  21.         #endregion
  22.  
  23.         #region Primitive Properties
  24.    
  25.         /// <summary>
  26.         /// No Metadata Documentation available.
  27.         /// </summary>
  28.         [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  29.         [DataMemberAttribute()]
  30.         public global::System.Int32 ID
  31.         {
  32.             get
  33.             {
  34.                 return _ID;
  35.             }
  36.             set
  37.             {
  38.                 if (_ID != value)
  39.                 {
  40.                     OnIDChanging(value);
  41.                     ReportPropertyChanging("ID");
  42.                     _ID = StructuralObject.SetValidValue(value);
  43.                     ReportPropertyChanged("ID");
  44.                     OnIDChanged();
  45.                 }
  46.             }
  47.         }
  48.         private global::System.Int32 _ID;
  49.         partial void OnIDChanging(global::System.Int32 value);
  50.         partial void OnIDChanged();
  51.    
  52.         /// <summary>
  53.         /// No Metadata Documentation available.
  54.         /// </summary>
  55.         [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  56.         [DataMemberAttribute()]
  57.         public global::System.String Name
  58.         {
  59.             get
  60.             {
  61.                 return _Name;
  62.             }
  63.             set
  64.             {
  65.                 OnNameChanging(value);
  66.                 ReportPropertyChanging("Name");
  67.                 _Name = StructuralObject.SetValidValue(value, true);
  68.                 ReportPropertyChanged("Name");
  69.                 OnNameChanged();
  70.             }
  71.         }
  72.         private global::System.String _Name;
  73.         partial void OnNameChanging(global::System.String value);
  74.         partial void OnNameChanged();
  75.    
  76.         /// <summary>
  77.         /// No Metadata Documentation available.
  78.         /// </summary>
  79.         [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  80.         [DataMemberAttribute()]
  81.         public global::System.String Version
  82.         {
  83.             get
  84.             {
  85.                 return _Version;
  86.             }
  87.             set
  88.             {
  89.                 OnVersionChanging(value);
  90.                 ReportPropertyChanging("Version");
  91.                 _Version = StructuralObject.SetValidValue(value, true);
  92.                 ReportPropertyChanged("Version");
  93.                 OnVersionChanged();
  94.             }
  95.         }
  96.         private global::System.String _Version;
  97.         partial void OnVersionChanging(global::System.String value);
  98.         partial void OnVersionChanged();
  99.    
  100.         /// <summary>
  101.         /// No Metadata Documentation available.
  102.         /// </summary>
  103.         [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  104.         [DataMemberAttribute()]
  105.         public global::System.String AssemblyFileName
  106.         {
  107.             get
  108.             {
  109.                 return _AssemblyFileName;
  110.             }
  111.             set
  112.             {
  113.                 OnAssemblyFileNameChanging(value);
  114.                 ReportPropertyChanging("AssemblyFileName");
  115.                 _AssemblyFileName = StructuralObject.SetValidValue(value, true);
  116.                 ReportPropertyChanged("AssemblyFileName");
  117.                 OnAssemblyFileNameChanged();
  118.             }
  119.         }
  120.         private global::System.String _AssemblyFileName;
  121.         partial void OnAssemblyFileNameChanging(global::System.String value);
  122.         partial void OnAssemblyFileNameChanged();
  123.    
  124.         /// <summary>
  125.         /// No Metadata Documentation available.
  126.         /// </summary>
  127.         [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  128.         [DataMemberAttribute()]
  129.         public global::System.Boolean IsMain
  130.         {
  131.             get
  132.             {
  133.                 return _IsMain;
  134.             }
  135.             set
  136.             {
  137.                 OnIsMainChanging(value);
  138.                 ReportPropertyChanging("IsMain");
  139.                 _IsMain = StructuralObject.SetValidValue(value);
  140.                 ReportPropertyChanged("IsMain");
  141.                 OnIsMainChanged();
  142.             }
  143.         }
  144.         private global::System.Boolean _IsMain;
  145.         partial void OnIsMainChanging(global::System.Boolean value);
  146.         partial void OnIsMainChanged();
  147.  
  148.         #endregion
  149.  
  150.    
  151.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement