PageRenderTime 5018ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/branches/HP10.0-Release.v2/Samples/Northwind/Acme.Northwind.EFDAL.Interfaces/Entity/ISupplier.Generated.cs

#
C# | 288 lines | 133 code | 47 blank | 108 comment | 0 complexity | 73da3fb76bd80ef302333f53540435bb MD5 | raw file
Possible License(s): JSON, CC-BY-SA-3.0
  1. using System;
  2. using System.Linq;
  3. using System.Runtime.Serialization;
  4. using System.Data.Objects.DataClasses;
  5. using System.Xml.Serialization;
  6. using System.ComponentModel;
  7. using System.Collections.Generic;
  8. using System.Text;
  9. using Acme.Northwind.EFDAL.Interfaces;
  10. namespace Acme.Northwind.EFDAL.Interfaces.Entity
  11. {
  12. /// <summary>
  13. /// This is the base interface for the EF entity for Supplier
  14. /// </summary>
  15. public partial interface ISupplier : nHydrate.EFCore.DataAccess.IBusinessObject, nHydrate.EFCore.DataAccess.INHEntityObject, System.ComponentModel.IDataErrorInfo, System.IEquatable<Acme.Northwind.EFDAL.Interfaces.Entity.ISupplier>, nHydrate.EFCore.DataAccess.IAuditable
  16. {
  17. #region Properties
  18. /// <summary>
  19. /// The property that maps back to the database 'Suppliers.Address' field
  20. /// </summary>
  21. [System.ComponentModel.Browsable(true)]
  22. [System.ComponentModel.DisplayName("Address")]
  23. string Address { get; set; }
  24. /// <summary>
  25. /// The property that maps back to the database 'Suppliers.City' field
  26. /// </summary>
  27. [System.ComponentModel.Browsable(true)]
  28. [System.ComponentModel.DisplayName("City")]
  29. string City { get; set; }
  30. /// <summary>
  31. /// The property that maps back to the database 'Suppliers.CompanyName' field
  32. /// </summary>
  33. [System.ComponentModel.Browsable(true)]
  34. [System.ComponentModel.DisplayName("CompanyName")]
  35. string CompanyName { get; set; }
  36. /// <summary>
  37. /// The property that maps back to the database 'Suppliers.ContactName' field
  38. /// </summary>
  39. [System.ComponentModel.Browsable(true)]
  40. [System.ComponentModel.DisplayName("ContactName")]
  41. string ContactName { get; set; }
  42. /// <summary>
  43. /// The property that maps back to the database 'Suppliers.ContactTitle' field
  44. /// </summary>
  45. [System.ComponentModel.Browsable(true)]
  46. [System.ComponentModel.DisplayName("ContactTitle")]
  47. string ContactTitle { get; set; }
  48. /// <summary>
  49. /// The property that maps back to the database 'Suppliers.Country' field
  50. /// </summary>
  51. [System.ComponentModel.Browsable(true)]
  52. [System.ComponentModel.DisplayName("Country")]
  53. string Country { get; set; }
  54. /// <summary>
  55. /// The property that maps back to the database 'Suppliers.Fax' field
  56. /// </summary>
  57. [System.ComponentModel.Browsable(true)]
  58. [System.ComponentModel.DisplayName("Fax")]
  59. string Fax { get; set; }
  60. /// <summary>
  61. /// The property that maps back to the database 'Suppliers.HomePage' field
  62. /// </summary>
  63. [System.ComponentModel.Browsable(true)]
  64. [System.ComponentModel.DisplayName("HomePage")]
  65. string HomePage { get; set; }
  66. /// <summary>
  67. /// The property that maps back to the database 'Suppliers.Phone' field
  68. /// </summary>
  69. [System.ComponentModel.Browsable(true)]
  70. [System.ComponentModel.DisplayName("Phone")]
  71. string Phone { get; set; }
  72. /// <summary>
  73. /// The property that maps back to the database 'Suppliers.PostalCode' field
  74. /// </summary>
  75. [System.ComponentModel.Browsable(true)]
  76. [System.ComponentModel.DisplayName("PostalCode")]
  77. string PostalCode { get; set; }
  78. /// <summary>
  79. /// The property that maps back to the database 'Suppliers.Region' field
  80. /// </summary>
  81. [System.ComponentModel.Browsable(true)]
  82. [System.ComponentModel.DisplayName("Region")]
  83. string Region { get; set; }
  84. /// <summary>
  85. /// The property that maps back to the database 'Suppliers.SupplierID' field
  86. /// </summary>
  87. [System.ComponentModel.Browsable(true)]
  88. [System.ComponentModel.DataAnnotations.Key()]
  89. [System.ComponentModel.ReadOnly(true)]
  90. [System.ComponentModel.DisplayName("SupplierID")]
  91. int SupplierID { get; set; }
  92. /// <summary>
  93. /// The audit field for the 'Created By' column.
  94. /// </summary>
  95. [System.ComponentModel.Browsable(false)]
  96. string CreatedBy { get; }
  97. /// <summary>
  98. /// The audit field for the 'Created Date' column.
  99. /// </summary>
  100. [System.ComponentModel.Browsable(false)]
  101. DateTime? CreatedDate { get; }
  102. /// <summary>
  103. /// The audit field for the 'Modified By' column.
  104. /// </summary>
  105. [System.ComponentModel.Browsable(false)]
  106. string ModifiedBy { get; }
  107. /// <summary>
  108. /// The audit field for the 'Modified Date' column.
  109. /// </summary>
  110. [System.ComponentModel.Browsable(false)]
  111. DateTime? ModifiedDate { get; }
  112. #endregion
  113. #region Navigation Properties
  114. /// <summary>
  115. /// The back navigation definition for walking Supplier->Product
  116. /// </summary>
  117. [XmlIgnoreAttribute()]
  118. [SoapIgnoreAttribute()]
  119. [DataMemberAttribute()]
  120. [EdmRelationshipNavigationPropertyAttribute("Acme.Northwind.EFDAL.Interfaces.Entity", "FK__Product_Supplier", "ProductList")]
  121. ICollection<Acme.Northwind.EFDAL.Interfaces.Entity.IProduct> ProductList { get; }
  122. #endregion
  123. }
  124. }
  125. #region Metadata Class
  126. namespace Acme.Northwind.EFDAL.Interfaces.Entity.Metadata
  127. {
  128. /// <summary>
  129. /// Metadata class for the 'Supplier' entity
  130. /// </summary>
  131. public partial class SupplierMetadata : nHydrate.EFCore.DataAccess.IMetadata
  132. {
  133. #region Properties
  134. /// <summary>
  135. /// Metadata information for the 'Address' parameter
  136. /// </summary>
  137. [System.ComponentModel.DataAnnotations.StringLength(60, ErrorMessage = "The property 'Address' has a maximum length of 60")]
  138. [System.ComponentModel.DataAnnotations.DisplayAttribute(Description = "", Name = "Address", AutoGenerateField = true)]
  139. public object Address;
  140. /// <summary>
  141. /// Metadata information for the 'City' parameter
  142. /// </summary>
  143. [System.ComponentModel.DataAnnotations.StringLength(15, ErrorMessage = "The property 'City' has a maximum length of 15")]
  144. [System.ComponentModel.DataAnnotations.DisplayAttribute(Description = "", Name = "City", AutoGenerateField = true)]
  145. public object City;
  146. /// <summary>
  147. /// Metadata information for the 'CompanyName' parameter
  148. /// </summary>
  149. [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "'CompanyName' is required.")]
  150. [System.ComponentModel.DataAnnotations.StringLength(40, ErrorMessage = "The property 'CompanyName' has a maximum length of 40")]
  151. [System.ComponentModel.DataAnnotations.DisplayAttribute(Description = "", Name = "CompanyName", AutoGenerateField = true)]
  152. public object CompanyName;
  153. /// <summary>
  154. /// Metadata information for the 'ContactName' parameter
  155. /// </summary>
  156. [System.ComponentModel.DataAnnotations.StringLength(30, ErrorMessage = "The property 'ContactName' has a maximum length of 30")]
  157. [System.ComponentModel.DataAnnotations.DisplayAttribute(Description = "", Name = "ContactName", AutoGenerateField = true)]
  158. public object ContactName;
  159. /// <summary>
  160. /// Metadata information for the 'ContactTitle' parameter
  161. /// </summary>
  162. [System.ComponentModel.DataAnnotations.StringLength(30, ErrorMessage = "The property 'ContactTitle' has a maximum length of 30")]
  163. [System.ComponentModel.DataAnnotations.DisplayAttribute(Description = "", Name = "ContactTitle", AutoGenerateField = true)]
  164. public object ContactTitle;
  165. /// <summary>
  166. /// Metadata information for the 'Country' parameter
  167. /// </summary>
  168. [System.ComponentModel.DataAnnotations.StringLength(15, ErrorMessage = "The property 'Country' has a maximum length of 15")]
  169. [System.ComponentModel.DataAnnotations.DisplayAttribute(Description = "", Name = "Country", AutoGenerateField = true)]
  170. public object Country;
  171. /// <summary>
  172. /// Metadata information for the 'Fax' parameter
  173. /// </summary>
  174. [System.ComponentModel.DataAnnotations.StringLength(24, ErrorMessage = "The property 'Fax' has a maximum length of 24")]
  175. [System.ComponentModel.DataAnnotations.DisplayAttribute(Description = "", Name = "Fax", AutoGenerateField = true)]
  176. public object Fax;
  177. /// <summary>
  178. /// Metadata information for the 'HomePage' parameter
  179. /// </summary>
  180. [System.ComponentModel.DataAnnotations.StringLength(1073741823, ErrorMessage = "The property 'HomePage' has a maximum length of 1073741823")]
  181. [System.ComponentModel.DataAnnotations.DisplayAttribute(Description = "", Name = "HomePage", AutoGenerateField = true)]
  182. public object HomePage;
  183. /// <summary>
  184. /// Metadata information for the 'Phone' parameter
  185. /// </summary>
  186. [System.ComponentModel.DataAnnotations.StringLength(24, ErrorMessage = "The property 'Phone' has a maximum length of 24")]
  187. [System.ComponentModel.DataAnnotations.DisplayAttribute(Description = "", Name = "Phone", AutoGenerateField = true)]
  188. public object Phone;
  189. /// <summary>
  190. /// Metadata information for the 'PostalCode' parameter
  191. /// </summary>
  192. [System.ComponentModel.DataAnnotations.StringLength(10, ErrorMessage = "The property 'PostalCode' has a maximum length of 10")]
  193. [System.ComponentModel.DataAnnotations.DisplayAttribute(Description = "", Name = "PostalCode", AutoGenerateField = true)]
  194. public object PostalCode;
  195. /// <summary>
  196. /// Metadata information for the 'Region' parameter
  197. /// </summary>
  198. [System.ComponentModel.DataAnnotations.StringLength(15, ErrorMessage = "The property 'Region' has a maximum length of 15")]
  199. [System.ComponentModel.DataAnnotations.DisplayAttribute(Description = "", Name = "Region", AutoGenerateField = true)]
  200. public object Region;
  201. /// <summary>
  202. /// Metadata information for the 'SupplierID' parameter
  203. /// </summary>
  204. [System.ComponentModel.DataAnnotations.Required(ErrorMessage = "'SupplierID' is required.")]
  205. [System.ComponentModel.DataAnnotations.Key()]
  206. [System.ComponentModel.DataAnnotations.Editable(false)]
  207. [System.ComponentModel.ReadOnly(true)]
  208. [System.ComponentModel.DataAnnotations.DisplayAttribute(Description = "", Name = "SupplierID", AutoGenerateField = true)]
  209. public object SupplierID;
  210. /// <summary>
  211. /// Metadata information for the 'CreatedBy' parameter
  212. /// </summary>
  213. [System.ComponentModel.DataAnnotations.StringLength(100, ErrorMessage = "The property 'CreatedBy' has a maximum length of 100")]
  214. [System.ComponentModel.ReadOnly(true)]
  215. public object CreatedBy;
  216. /// <summary>
  217. /// Metadata information for the 'CreatedDate' parameter
  218. /// </summary>
  219. [System.ComponentModel.ReadOnly(true)]
  220. public object CreatedDate;
  221. /// <summary>
  222. /// Metadata information for the 'ModifiedBy' parameter
  223. /// </summary>
  224. [System.ComponentModel.DataAnnotations.StringLength(100, ErrorMessage = "The property 'ModifiedBy' has a maximum length of 100")]
  225. [System.ComponentModel.ReadOnly(true)]
  226. public object ModifiedBy;
  227. /// <summary>
  228. /// Metadata information for the 'ModifiedDate' parameter
  229. /// </summary>
  230. [System.ComponentModel.ReadOnly(true)]
  231. public object ModifiedDate;
  232. /// <summary>
  233. /// Metadata information for the 'Timestamp' parameter
  234. /// </summary>
  235. [System.ComponentModel.DataAnnotations.Timestamp()]
  236. [System.ComponentModel.ReadOnly(true)]
  237. public object Timestamp;
  238. #endregion
  239. }
  240. }
  241. #endregion