PageRenderTime 76ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 1ms

/test/EntityFramework/FunctionalTests/Objects/AttributeBasedOCLoading.cs

https://bitbucket.org/vanickdigital/totus.entityframework
C# | 7682 lines | 7653 code | 23 blank | 6 comment | 11 complexity | a483a66a78d8e3af6312a6de196ca41a MD5 | raw file
  1. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
  2. namespace System.Data.Entity.Objects
  3. {
  4. using System.CodeDom.Compiler;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Data.Common;
  8. using System.Data.Entity.Core.Mapping;
  9. using System.Data.Entity.Core.Metadata.Edm;
  10. using System.Linq;
  11. using System.Reflection;
  12. using System.Runtime.Serialization;
  13. using System.Xml.Linq;
  14. using System.Xml.Serialization;
  15. using Xunit;
  16. public class AttributeBasedOCLoading : FunctionalTestBase
  17. {
  18. [Fact]
  19. public void O_space_types_are_discovered_when_using_attribute_based_mapping()
  20. {
  21. var edmItemCollection = new EdmItemCollection(
  22. new[]
  23. {
  24. XDocument.Load(
  25. typeof(AttributeBasedOCLoading).Assembly.GetManifestResourceStream(
  26. "System.Data.Entity.TestModels.TemplateModels.Schemas.MonsterModel.csdl")).CreateReader()
  27. });
  28. var storeItemCollection = new StoreItemCollection(
  29. new[]
  30. {
  31. XDocument.Load(
  32. typeof(AttributeBasedOCLoading).Assembly.GetManifestResourceStream(
  33. "System.Data.Entity.TestModels.TemplateModels.Schemas.MonsterModel.ssdl")).CreateReader()
  34. });
  35. var storageMappingItemCollection = LoadMsl(
  36. edmItemCollection, storeItemCollection, XDocument.Load(
  37. typeof(AttributeBasedOCLoading).Assembly.GetManifestResourceStream(
  38. "System.Data.Entity.TestModels.TemplateModels.Schemas.MonsterModel.msl")));
  39. var workspace = new MetadataWorkspace(
  40. () => edmItemCollection,
  41. () => storeItemCollection,
  42. () => storageMappingItemCollection);
  43. var assembly = BuildEntitiesAssembly(ObjectLayer);
  44. workspace.LoadFromAssembly(assembly);
  45. var oSpaceItems = (ObjectItemCollection)workspace.GetItemCollection(DataSpace.OSpace);
  46. // Sanity checks that types/relationships were actually found
  47. // Entity types
  48. var entityTypes = oSpaceItems
  49. .OfType<EdmType>()
  50. .Where(i => i.BuiltInTypeKind == BuiltInTypeKind.EntityType)
  51. .ToList();
  52. Assert.Equal(
  53. new[]
  54. {
  55. "BackOrderLine2Mm", "BackOrderLineMm", "BarcodeDetailMm", "BarcodeMm", "ComplaintMm", "ComputerDetailMm",
  56. "ComputerMm", "CustomerInfoMm", "CustomerMm", "DiscontinuedProductMm", "DriverMm", "IncorrectScanMm",
  57. "LastLoginMm", "LicenseMm", "LoginMm", "MessageMm", "OrderLineMm", "OrderMm", "OrderNoteMm",
  58. "OrderQualityCheckMm", "PageViewMm", "PasswordResetMm", "ProductDetailMm", "ProductMm", "ProductPageViewMm",
  59. "ProductPhotoMm", "ProductReviewMm", "ProductWebFeatureMm", "ResolutionMm", "RSATokenMm", "SmartCardMm",
  60. "SupplierInfoMm", "SupplierLogoMm", "SupplierMm", "SuspiciousActivityMm"
  61. },
  62. entityTypes.Select(i => i.Name).OrderBy(n => n));
  63. Assert.True(entityTypes.All(e => e.NamespaceName == "BuildMonsterModel"));
  64. Assert.True(entityTypes.All(e => oSpaceItems.GetClrType((StructuralType)e).Assembly == assembly));
  65. // Complex types
  66. var complexTypes = oSpaceItems
  67. .OfType<EdmType>()
  68. .Where(i => i.BuiltInTypeKind == BuiltInTypeKind.ComplexType)
  69. .ToList();
  70. Assert.Equal(
  71. new[] { "AuditInfoMm", "ConcurrencyInfoMm", "ContactDetailsMm", "DimensionsMm", "PhoneMm" },
  72. complexTypes.Select(i => i.Name).OrderBy(n => n));
  73. Assert.True(complexTypes.All(e => e.NamespaceName == "BuildMonsterModel"));
  74. Assert.True(complexTypes.All(e => oSpaceItems.GetClrType((StructuralType)e).Assembly == assembly));
  75. // Enum types
  76. var enumTypes = oSpaceItems
  77. .OfType<EdmType>()
  78. .Where(i => i.BuiltInTypeKind == BuiltInTypeKind.EnumType)
  79. .ToList();
  80. Assert.Equal(
  81. new[] { "LicenseStateMm", "PhoneTypeMm" },
  82. enumTypes.Select(i => i.Name).OrderBy(n => n));
  83. Assert.True(enumTypes.All(e => e.NamespaceName == "BuildMonsterModel"));
  84. Assert.True(enumTypes.All(e => oSpaceItems.GetClrType((EnumType)e).Assembly == assembly));
  85. // Associations
  86. var associations = oSpaceItems
  87. .OfType<AssociationType>()
  88. .Where(i => i.BuiltInTypeKind == BuiltInTypeKind.AssociationType)
  89. .ToList();
  90. Assert.Equal(
  91. new[]
  92. {
  93. "Barcode_BarcodeDetail", "Barcode_IncorrectScanActual", "Barcode_IncorrectScanExpected", "Complaint_Resolution",
  94. "Computer_ComputerDetail", "Customer_Complaints", "Customer_CustomerInfo", "Customer_Logins", "Customer_Orders",
  95. "DiscontinuedProduct_Replacement", "Driver_License", "Husband_Wife", "LastLogin_SmartCard", "Login_LastLogin",
  96. "Login_Orders", "Login_PageViews", "Login_PasswordResets", "Login_ReceivedMessages", "Login_RSAToken",
  97. "Login_SentMessages", "Login_SmartCard", "Login_SuspiciousActivity", "Order_OrderLines", "Order_OrderNotes",
  98. "Order_QualityCheck", "Product_Barcodes", "Product_OrderLines", "Product_ProductDetail", "Product_ProductPageViews",
  99. "Product_ProductPhoto", "Product_ProductReview", "Products_Suppliers", "ProductWebFeature_ProductPhoto",
  100. "ProductWebFeature_ProductReview", "Supplier_BackOrderLines", "Supplier_SupplierInfo", "Supplier_SupplierLogo"
  101. },
  102. associations.Select(i => i.Name).OrderBy(n => n));
  103. Assert.True(associations.All(e => e.NamespaceName == "MonsterNamespace"));
  104. }
  105. private static StorageMappingItemCollection LoadMsl(
  106. EdmItemCollection edmItemCollection, StoreItemCollection storeItemCollection, XDocument msl)
  107. {
  108. IList<EdmSchemaError> errors;
  109. return StorageMappingItemCollection.Create(
  110. edmItemCollection,
  111. storeItemCollection,
  112. new[] { msl.CreateReader() },
  113. null,
  114. out errors);
  115. }
  116. public Assembly BuildEntitiesAssembly(string source)
  117. {
  118. var options = new CompilerParameters
  119. {
  120. GenerateExecutable = false,
  121. GenerateInMemory = true
  122. };
  123. options.ReferencedAssemblies.Add(typeof(string).Assembly.Location);
  124. options.ReferencedAssemblies.Add(typeof(DbContext).Assembly.Location);
  125. options.ReferencedAssemblies.Add(typeof(DbConnection).Assembly.Location);
  126. options.ReferencedAssemblies.Add(typeof(Component).Assembly.Location);
  127. options.ReferencedAssemblies.Add(typeof(DataContractSerializer).Assembly.Location);
  128. options.ReferencedAssemblies.Add(typeof(XmlSerializer).Assembly.Location);
  129. options.ReferencedAssemblies.Add(typeof(IOrderedQueryable).Assembly.Location);
  130. return CodeDomProvider.CreateProvider("cs").CompileAssemblyFromSource(options, source).CompiledAssembly;
  131. }
  132. private const string ObjectLayer = @"
  133. //------------------------------------------------------------------------------
  134. // <auto-generated>
  135. // This code was generated from a template.
  136. //
  137. // Manual changes to this file may cause unexpected behavior in your application.
  138. // Manual changes to this file will be overwritten if the code is regenerated.
  139. // </auto-generated>
  140. //------------------------------------------------------------------------------
  141. using System;
  142. using System.ComponentModel;
  143. using System.Data.Entity.Core.EntityClient;
  144. using System.Data.Entity.Core.Objects;
  145. using System.Data.Entity.Core.Objects.DataClasses;
  146. using System.Linq;
  147. using System.Runtime.Serialization;
  148. using System.Xml.Serialization;
  149. [assembly: EdmSchemaAttribute()]
  150. #region EDM Relationship Metadata
  151. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Customer_Complaints"", ""Customer"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.CustomerMm), ""Complaints"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.ComplaintMm), true)]
  152. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Login_SentMessages"", ""Sender"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.LoginMm), ""Message"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.MessageMm), true)]
  153. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Login_ReceivedMessages"", ""Recipient"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.LoginMm), ""Message"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.MessageMm), true)]
  154. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Customer_CustomerInfo"", ""Customer"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.CustomerMm), ""Info"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.CustomerInfoMm))]
  155. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Supplier_SupplierInfo"", ""Supplier"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.SupplierMm), ""Info"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.SupplierInfoMm))]
  156. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Login_Orders"", ""Login"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.LoginMm), ""Orders"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.OrderMm))]
  157. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Order_OrderNotes"", ""Order"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.OrderMm), ""Notes"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.OrderNoteMm))]
  158. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Order_QualityCheck"", ""Order"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.OrderMm), ""QualityCheck"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.OrderQualityCheckMm), true)]
  159. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Supplier_SupplierLogo"", ""Supplier"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.SupplierMm), ""Logo"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.SupplierLogoMm), true)]
  160. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Customer_Orders"", ""Customer"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.CustomerMm), ""Order"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.OrderMm), true)]
  161. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Customer_Logins"", ""Customer"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.CustomerMm), ""Logins"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.LoginMm), true)]
  162. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Login_LastLogin"", ""Login"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.LoginMm), ""LastLogin"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.LastLoginMm), true)]
  163. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""LastLogin_SmartCard"", ""LastLogin"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.LastLoginMm), ""SmartCard"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.SmartCardMm))]
  164. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Order_OrderLines"", ""Order"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.OrderMm), ""OrderLines"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.OrderLineMm), true)]
  165. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Product_OrderLines"", ""Product"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.ProductMm), ""OrderLines"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.OrderLineMm), true)]
  166. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Products_Suppliers"", ""Products"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.ProductMm), ""Suppliers"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.SupplierMm))]
  167. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Supplier_BackOrderLines"", ""Supplier"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.SupplierMm), ""BackOrderLines"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.BackOrderLineMm))]
  168. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""DiscontinuedProduct_Replacement"", ""Replacement"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.ProductMm), ""DiscontinuedProduct"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.DiscontinuedProductMm), true)]
  169. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Product_ProductDetail"", ""Product"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.ProductMm), ""ProductDetail"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.ProductDetailMm), true)]
  170. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Product_ProductReview"", ""Product"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.ProductMm), ""ProductReview"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.ProductReviewMm), true)]
  171. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Product_ProductPhoto"", ""Product"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.ProductMm), ""ProductPhoto"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.ProductPhotoMm), true)]
  172. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""ProductWebFeature_ProductPhoto"", ""ProductWebFeature"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.ProductWebFeatureMm), ""ProductPhoto"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.ProductPhotoMm), true)]
  173. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""ProductWebFeature_ProductReview"", ""ProductWebFeature"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.ProductWebFeatureMm), ""ProductReview"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.ProductReviewMm), true)]
  174. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Complaint_Resolution"", ""Complaint"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.ComplaintMm), ""Resolution"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.ResolutionMm))]
  175. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Barcode_IncorrectScanExpected"", ""Barcode"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.BarcodeMm), ""Expected"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.IncorrectScanMm), true)]
  176. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Husband_Wife"", ""Husband"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.CustomerMm), ""Wife"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.CustomerMm))]
  177. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Barcode_IncorrectScanActual"", ""Barcode"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.BarcodeMm), ""Actual"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.IncorrectScanMm), true)]
  178. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Product_Barcodes"", ""Product"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.ProductMm), ""Barcodes"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.BarcodeMm), true)]
  179. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Barcode_BarcodeDetail"", ""Barcode"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.BarcodeMm), ""BarcodeDetail"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.BarcodeDetailMm), true)]
  180. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Login_SuspiciousActivity"", ""Login"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.LoginMm), ""Activity"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.SuspiciousActivityMm))]
  181. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Login_RSAToken"", ""Login"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.LoginMm), ""RSAToken"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.RSATokenMm))]
  182. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Login_SmartCard"", ""Login"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.LoginMm), ""SmartCard"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(BuildMonsterModel.SmartCardMm), true)]
  183. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Login_PasswordResets"", ""Login"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.LoginMm), ""PasswordResets"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.PasswordResetMm), true)]
  184. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Product_ProductPageViews"", ""Product"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.ProductMm), ""ProductPageViews"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.ProductPageViewMm), true)]
  185. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Login_PageViews"", ""Login"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.LoginMm), ""PageViews"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.Many, typeof(BuildMonsterModel.PageViewMm), true)]
  186. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Computer_ComputerDetail"", ""Computer"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.ComputerMm), ""ComputerDetail"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.ComputerDetailMm))]
  187. [assembly: EdmRelationshipAttribute(""MonsterNamespace"", ""Driver_License"", ""Driver"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.DriverMm), ""License"", System.Data.Entity.Core.Metadata.Edm.RelationshipMultiplicity.One, typeof(BuildMonsterModel.LicenseMm), true)]
  188. #endregion
  189. namespace BuildMonsterModel
  190. {
  191. #region Contexts
  192. /// <summary>
  193. /// No Metadata Documentation available.
  194. /// </summary>
  195. public partial class MonsterModel : ObjectContext
  196. {
  197. #region Constructors
  198. /// <summary>
  199. /// Initializes a new MonsterModel object using the connection string found in the 'MonsterModel' section of the application configuration file.
  200. /// </summary>
  201. public MonsterModel() : base(""name=MonsterModel"", ""MonsterModel"")
  202. {
  203. OnContextCreated();
  204. }
  205. /// <summary>
  206. /// Initialize a new MonsterModel object.
  207. /// </summary>
  208. public MonsterModel(string connectionString) : base(connectionString, ""MonsterModel"")
  209. {
  210. OnContextCreated();
  211. }
  212. /// <summary>
  213. /// Initialize a new MonsterModel object.
  214. /// </summary>
  215. public MonsterModel(EntityConnection connection) : base(connection, ""MonsterModel"")
  216. {
  217. OnContextCreated();
  218. }
  219. #endregion
  220. #region Partial Methods
  221. partial void OnContextCreated();
  222. #endregion
  223. #region ObjectSet Properties
  224. /// <summary>
  225. /// No Metadata Documentation available.
  226. /// </summary>
  227. public ObjectSet<CustomerMm> Customer
  228. {
  229. get
  230. {
  231. if ((_Customer == null))
  232. {
  233. _Customer = base.CreateObjectSet<CustomerMm>(""Customer"");
  234. }
  235. return _Customer;
  236. }
  237. }
  238. private ObjectSet<CustomerMm> _Customer;
  239. /// <summary>
  240. /// No Metadata Documentation available.
  241. /// </summary>
  242. public ObjectSet<BarcodeMm> Barcode
  243. {
  244. get
  245. {
  246. if ((_Barcode == null))
  247. {
  248. _Barcode = base.CreateObjectSet<BarcodeMm>(""Barcode"");
  249. }
  250. return _Barcode;
  251. }
  252. }
  253. private ObjectSet<BarcodeMm> _Barcode;
  254. /// <summary>
  255. /// No Metadata Documentation available.
  256. /// </summary>
  257. public ObjectSet<IncorrectScanMm> IncorrectScan
  258. {
  259. get
  260. {
  261. if ((_IncorrectScan == null))
  262. {
  263. _IncorrectScan = base.CreateObjectSet<IncorrectScanMm>(""IncorrectScan"");
  264. }
  265. return _IncorrectScan;
  266. }
  267. }
  268. private ObjectSet<IncorrectScanMm> _IncorrectScan;
  269. /// <summary>
  270. /// No Metadata Documentation available.
  271. /// </summary>
  272. public ObjectSet<BarcodeDetailMm> BarcodeDetail
  273. {
  274. get
  275. {
  276. if ((_BarcodeDetail == null))
  277. {
  278. _BarcodeDetail = base.CreateObjectSet<BarcodeDetailMm>(""BarcodeDetail"");
  279. }
  280. return _BarcodeDetail;
  281. }
  282. }
  283. private ObjectSet<BarcodeDetailMm> _BarcodeDetail;
  284. /// <summary>
  285. /// No Metadata Documentation available.
  286. /// </summary>
  287. public ObjectSet<ComplaintMm> Complaint
  288. {
  289. get
  290. {
  291. if ((_Complaint == null))
  292. {
  293. _Complaint = base.CreateObjectSet<ComplaintMm>(""Complaint"");
  294. }
  295. return _Complaint;
  296. }
  297. }
  298. private ObjectSet<ComplaintMm> _Complaint;
  299. /// <summary>
  300. /// No Metadata Documentation available.
  301. /// </summary>
  302. public ObjectSet<ResolutionMm> Resolution
  303. {
  304. get
  305. {
  306. if ((_Resolution == null))
  307. {
  308. _Resolution = base.CreateObjectSet<ResolutionMm>(""Resolution"");
  309. }
  310. return _Resolution;
  311. }
  312. }
  313. private ObjectSet<ResolutionMm> _Resolution;
  314. /// <summary>
  315. /// No Metadata Documentation available.
  316. /// </summary>
  317. public ObjectSet<LoginMm> Login
  318. {
  319. get
  320. {
  321. if ((_Login == null))
  322. {
  323. _Login = base.CreateObjectSet<LoginMm>(""Login"");
  324. }
  325. return _Login;
  326. }
  327. }
  328. private ObjectSet<LoginMm> _Login;
  329. /// <summary>
  330. /// No Metadata Documentation available.
  331. /// </summary>
  332. public ObjectSet<SuspiciousActivityMm> SuspiciousActivity
  333. {
  334. get
  335. {
  336. if ((_SuspiciousActivity == null))
  337. {
  338. _SuspiciousActivity = base.CreateObjectSet<SuspiciousActivityMm>(""SuspiciousActivity"");
  339. }
  340. return _SuspiciousActivity;
  341. }
  342. }
  343. private ObjectSet<SuspiciousActivityMm> _SuspiciousActivity;
  344. /// <summary>
  345. /// No Metadata Documentation available.
  346. /// </summary>
  347. public ObjectSet<SmartCardMm> SmartCard
  348. {
  349. get
  350. {
  351. if ((_SmartCard == null))
  352. {
  353. _SmartCard = base.CreateObjectSet<SmartCardMm>(""SmartCard"");
  354. }
  355. return _SmartCard;
  356. }
  357. }
  358. private ObjectSet<SmartCardMm> _SmartCard;
  359. /// <summary>
  360. /// No Metadata Documentation available.
  361. /// </summary>
  362. public ObjectSet<RSATokenMm> RSAToken
  363. {
  364. get
  365. {
  366. if ((_RSAToken == null))
  367. {
  368. _RSAToken = base.CreateObjectSet<RSATokenMm>(""RSAToken"");
  369. }
  370. return _RSAToken;
  371. }
  372. }
  373. private ObjectSet<RSATokenMm> _RSAToken;
  374. /// <summary>
  375. /// No Metadata Documentation available.
  376. /// </summary>
  377. public ObjectSet<PasswordResetMm> PasswordReset
  378. {
  379. get
  380. {
  381. if ((_PasswordReset == null))
  382. {
  383. _PasswordReset = base.CreateObjectSet<PasswordResetMm>(""PasswordReset"");
  384. }
  385. return _PasswordReset;
  386. }
  387. }
  388. private ObjectSet<PasswordResetMm> _PasswordReset;
  389. /// <summary>
  390. /// No Metadata Documentation available.
  391. /// </summary>
  392. public ObjectSet<PageViewMm> PageView
  393. {
  394. get
  395. {
  396. if ((_PageView == null))
  397. {
  398. _PageView = base.CreateObjectSet<PageViewMm>(""PageView"");
  399. }
  400. return _PageView;
  401. }
  402. }
  403. private ObjectSet<PageViewMm> _PageView;
  404. /// <summary>
  405. /// No Metadata Documentation available.
  406. /// </summary>
  407. public ObjectSet<LastLoginMm> LastLogin
  408. {
  409. get
  410. {
  411. if ((_LastLogin == null))
  412. {
  413. _LastLogin = base.CreateObjectSet<LastLoginMm>(""LastLogin"");
  414. }
  415. return _LastLogin;
  416. }
  417. }
  418. private ObjectSet<LastLoginMm> _LastLogin;
  419. /// <summary>
  420. /// No Metadata Documentation available.
  421. /// </summary>
  422. public ObjectSet<MessageMm> Message
  423. {
  424. get
  425. {
  426. if ((_Message == null))
  427. {
  428. _Message = base.CreateObjectSet<MessageMm>(""Message"");
  429. }
  430. return _Message;
  431. }
  432. }
  433. private ObjectSet<MessageMm> _Message;
  434. /// <summary>
  435. /// No Metadata Documentation available.
  436. /// </summary>
  437. public ObjectSet<OrderMm> Order
  438. {
  439. get
  440. {
  441. if ((_Order == null))
  442. {
  443. _Order = base.CreateObjectSet<OrderMm>(""Order"");
  444. }
  445. return _Order;
  446. }
  447. }
  448. private ObjectSet<OrderMm> _Order;
  449. /// <summary>
  450. /// No Metadata Documentation available.
  451. /// </summary>
  452. public ObjectSet<OrderNoteMm> OrderNote
  453. {
  454. get
  455. {
  456. if ((_OrderNote == null))
  457. {
  458. _OrderNote = base.CreateObjectSet<OrderNoteMm>(""OrderNote"");
  459. }
  460. return _OrderNote;
  461. }
  462. }
  463. private ObjectSet<OrderNoteMm> _OrderNote;
  464. /// <summary>
  465. /// No Metadata Documentation available.
  466. /// </summary>
  467. public ObjectSet<OrderQualityCheckMm> OrderQualityCheck
  468. {
  469. get
  470. {
  471. if ((_OrderQualityCheck == null))
  472. {
  473. _OrderQualityCheck = base.CreateObjectSet<OrderQualityCheckMm>(""OrderQualityCheck"");
  474. }
  475. return _OrderQualityCheck;
  476. }
  477. }
  478. private ObjectSet<OrderQualityCheckMm> _OrderQualityCheck;
  479. /// <summary>
  480. /// No Metadata Documentation available.
  481. /// </summary>
  482. public ObjectSet<OrderLineMm> OrderLine
  483. {
  484. get
  485. {
  486. if ((_OrderLine == null))
  487. {
  488. _OrderLine = base.CreateObjectSet<OrderLineMm>(""OrderLine"");
  489. }
  490. return _OrderLine;
  491. }
  492. }
  493. private ObjectSet<OrderLineMm> _OrderLine;
  494. /// <summary>
  495. /// No Metadata Documentation available.
  496. /// </summary>
  497. public ObjectSet<ProductMm> Product
  498. {
  499. get
  500. {
  501. if ((_Product == null))
  502. {
  503. _Product = base.CreateObjectSet<ProductMm>(""Product"");
  504. }
  505. return _Product;
  506. }
  507. }
  508. private ObjectSet<ProductMm> _Product;
  509. /// <summary>
  510. /// No Metadata Documentation available.
  511. /// </summary>
  512. public ObjectSet<ProductDetailMm> ProductDetail
  513. {
  514. get
  515. {
  516. if ((_ProductDetail == null))
  517. {
  518. _ProductDetail = base.CreateObjectSet<ProductDetailMm>(""ProductDetail"");
  519. }
  520. return _ProductDetail;
  521. }
  522. }
  523. private ObjectSet<ProductDetailMm> _ProductDetail;
  524. /// <summary>
  525. /// No Metadata Documentation available.
  526. /// </summary>
  527. public ObjectSet<ProductReviewMm> ProductReview
  528. {
  529. get
  530. {
  531. if ((_ProductReview == null))
  532. {
  533. _ProductReview = base.CreateObjectSet<ProductReviewMm>(""ProductReview"");
  534. }
  535. return _ProductReview;
  536. }
  537. }
  538. private ObjectSet<ProductReviewMm> _ProductReview;
  539. /// <summary>
  540. /// No Metadata Documentation available.
  541. /// </summary>
  542. public ObjectSet<ProductPhotoMm> ProductPhoto
  543. {
  544. get
  545. {
  546. if ((_ProductPhoto == null))
  547. {
  548. _ProductPhoto = base.CreateObjectSet<ProductPhotoMm>(""ProductPhoto"");
  549. }
  550. return _ProductPhoto;
  551. }
  552. }
  553. private ObjectSet<ProductPhotoMm> _ProductPhoto;
  554. /// <summary>
  555. /// No Metadata Documentation available.
  556. /// </summary>
  557. public ObjectSet<ProductWebFeatureMm> ProductWebFeature
  558. {
  559. get
  560. {
  561. if ((_ProductWebFeature == null))
  562. {
  563. _ProductWebFeature = base.CreateObjectSet<ProductWebFeatureMm>(""ProductWebFeature"");
  564. }
  565. return _ProductWebFeature;
  566. }
  567. }
  568. private ObjectSet<ProductWebFeatureMm> _ProductWebFeature;
  569. /// <summary>
  570. /// No Metadata Documentation available.
  571. /// </summary>
  572. public ObjectSet<SupplierMm> Supplier
  573. {
  574. get
  575. {
  576. if ((_Supplier == null))
  577. {
  578. _Supplier = base.CreateObjectSet<SupplierMm>(""Supplier"");
  579. }
  580. return _Supplier;
  581. }
  582. }
  583. private ObjectSet<SupplierMm> _Supplier;
  584. /// <summary>
  585. /// No Metadata Documentation available.
  586. /// </summary>
  587. public ObjectSet<SupplierLogoMm> SupplierLogo
  588. {
  589. get
  590. {
  591. if ((_SupplierLogo == null))
  592. {
  593. _SupplierLogo = base.CreateObjectSet<SupplierLogoMm>(""SupplierLogo"");
  594. }
  595. return _SupplierLogo;
  596. }
  597. }
  598. private ObjectSet<SupplierLogoMm> _SupplierLogo;
  599. /// <summary>
  600. /// No Metadata Documentation available.
  601. /// </summary>
  602. public ObjectSet<SupplierInfoMm> SupplierInfo
  603. {
  604. get
  605. {
  606. if ((_SupplierInfo == null))
  607. {
  608. _SupplierInfo = base.CreateObjectSet<SupplierInfoMm>(""SupplierInfo"");
  609. }
  610. return _SupplierInfo;
  611. }
  612. }
  613. private ObjectSet<SupplierInfoMm> _SupplierInfo;
  614. /// <summary>
  615. /// No Metadata Documentation available.
  616. /// </summary>
  617. public ObjectSet<CustomerInfoMm> CustomerInfo
  618. {
  619. get
  620. {
  621. if ((_CustomerInfo == null))
  622. {
  623. _CustomerInfo = base.CreateObjectSet<CustomerInfoMm>(""CustomerInfo"");
  624. }
  625. return _CustomerInfo;
  626. }
  627. }
  628. private ObjectSet<CustomerInfoMm> _CustomerInfo;
  629. /// <summary>
  630. /// No Metadata Documentation available.
  631. /// </summary>
  632. public ObjectSet<ComputerMm> Computer
  633. {
  634. get
  635. {
  636. if ((_Computer == null))
  637. {
  638. _Computer = base.CreateObjectSet<ComputerMm>(""Computer"");
  639. }
  640. return _Computer;
  641. }
  642. }
  643. private ObjectSet<ComputerMm> _Computer;
  644. /// <summary>
  645. /// No Metadata Documentation available.
  646. /// </summary>
  647. public ObjectSet<ComputerDetailMm> ComputerDetail
  648. {
  649. get
  650. {
  651. if ((_ComputerDetail == null))
  652. {
  653. _ComputerDetail = base.CreateObjectSet<ComputerDetailMm>(""ComputerDetail"");
  654. }
  655. return _ComputerDetail;
  656. }
  657. }
  658. private ObjectSet<ComputerDetailMm> _ComputerDetail;
  659. /// <summary>
  660. /// No Metadata Documentation available.
  661. /// </summary>
  662. public ObjectSet<DriverMm> Driver
  663. {
  664. get
  665. {
  666. if ((_Driver == null))
  667. {
  668. _Driver = base.CreateObjectSet<DriverMm>(""Driver"");
  669. }
  670. return _Driver;
  671. }
  672. }
  673. private ObjectSet<DriverMm> _Driver;
  674. /// <summary>
  675. /// No Metadata Documentation available.
  676. /// </summary>
  677. public ObjectSet<LicenseMm> License
  678. {
  679. get
  680. {
  681. if ((_License == null))
  682. {
  683. _License = base.CreateObjectSet<LicenseMm>(""License"");
  684. }
  685. return _License;
  686. }
  687. }
  688. private ObjectSet<LicenseMm> _License;
  689. #endregion
  690. #region AddTo Methods
  691. /// <summary>
  692. /// Deprecated Method for adding a new object to the Customer EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  693. /// </summary>
  694. public void AddToCustomer(CustomerMm customerMm)
  695. {
  696. base.AddObject(""Customer"", customerMm);
  697. }
  698. /// <summary>
  699. /// Deprecated Method for adding a new object to the Barcode EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  700. /// </summary>
  701. public void AddToBarcode(BarcodeMm barcodeMm)
  702. {
  703. base.AddObject(""Barcode"", barcodeMm);
  704. }
  705. /// <summary>
  706. /// Deprecated Method for adding a new object to the IncorrectScan EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  707. /// </summary>
  708. public void AddToIncorrectScan(IncorrectScanMm incorrectScanMm)
  709. {
  710. base.AddObject(""IncorrectScan"", incorrectScanMm);
  711. }
  712. /// <summary>
  713. /// Deprecated Method for adding a new object to the BarcodeDetail EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  714. /// </summary>
  715. public void AddToBarcodeDetail(BarcodeDetailMm barcodeDetailMm)
  716. {
  717. base.AddObject(""BarcodeDetail"", barcodeDetailMm);
  718. }
  719. /// <summary>
  720. /// Deprecated Method for adding a new object to the Complaint EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  721. /// </summary>
  722. public void AddToComplaint(ComplaintMm complaintMm)
  723. {
  724. base.AddObject(""Complaint"", complaintMm);
  725. }
  726. /// <summary>
  727. /// Deprecated Method for adding a new object to the Resolution EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  728. /// </summary>
  729. public void AddToResolution(ResolutionMm resolutionMm)
  730. {
  731. base.AddObject(""Resolution"", resolutionMm);
  732. }
  733. /// <summary>
  734. /// Deprecated Method for adding a new object to the Login EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  735. /// </summary>
  736. public void AddToLogin(LoginMm loginMm)
  737. {
  738. base.AddObject(""Login"", loginMm);
  739. }
  740. /// <summary>
  741. /// Deprecated Method for adding a new object to the SuspiciousActivity EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  742. /// </summary>
  743. public void AddToSuspiciousActivity(SuspiciousActivityMm suspiciousActivityMm)
  744. {
  745. base.AddObject(""SuspiciousActivity"", suspiciousActivityMm);
  746. }
  747. /// <summary>
  748. /// Deprecated Method for adding a new object to the SmartCard EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  749. /// </summary>
  750. public void AddToSmartCard(SmartCardMm smartCardMm)
  751. {
  752. base.AddObject(""SmartCard"", smartCardMm);
  753. }
  754. /// <summary>
  755. /// Deprecated Method for adding a new object to the RSAToken EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  756. /// </summary>
  757. public void AddToRSAToken(RSATokenMm rSATokenMm)
  758. {
  759. base.AddObject(""RSAToken"", rSATokenMm);
  760. }
  761. /// <summary>
  762. /// Deprecated Method for adding a new object to the PasswordReset EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  763. /// </summary>
  764. public void AddToPasswordReset(PasswordResetMm passwordResetMm)
  765. {
  766. base.AddObject(""PasswordReset"", passwordResetMm);
  767. }
  768. /// <summary>
  769. /// Deprecated Method for adding a new object to the PageView EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  770. /// </summary>
  771. public void AddToPageView(PageViewMm pageViewMm)
  772. {
  773. base.AddObject(""PageView"", pageViewMm);
  774. }
  775. /// <summary>
  776. /// Deprecated Method for adding a new object to the LastLogin EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  777. /// </summary>
  778. public void AddToLastLogin(LastLoginMm lastLoginMm)
  779. {
  780. base.AddObject(""LastLogin"", lastLoginMm);
  781. }
  782. /// <summary>
  783. /// Deprecated Method for adding a new object to the Message EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  784. /// </summary>
  785. public void AddToMessage(MessageMm messageMm)
  786. {
  787. base.AddObject(""Message"", messageMm);
  788. }
  789. /// <summary>
  790. /// Deprecated Method for adding a new object to the Order EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  791. /// </summary>
  792. public void AddToOrder(OrderMm orderMm)
  793. {
  794. base.AddObject(""Order"", orderMm);
  795. }
  796. /// <summary>
  797. /// Deprecated Method for adding a new object to the OrderNote EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  798. /// </summary>
  799. public void AddToOrderNote(OrderNoteMm orderNoteMm)
  800. {
  801. base.AddObject(""OrderNote"", orderNoteMm);
  802. }
  803. /// <summary>
  804. /// Deprecated Method for adding a new object to the OrderQualityCheck EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  805. /// </summary>
  806. public void AddToOrderQualityCheck(OrderQualityCheckMm orderQualityCheckMm)
  807. {
  808. base.AddObject(""OrderQualityCheck"", orderQualityCheckMm);
  809. }
  810. /// <summary>
  811. /// Deprecated Method for adding a new object to the OrderLine EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  812. /// </summary>
  813. public void AddToOrderLine(OrderLineMm orderLineMm)
  814. {
  815. base.AddObject(""OrderLine"", orderLineMm);
  816. }
  817. /// <summary>
  818. /// Deprecated Method for adding a new object to the Product EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  819. /// </summary>
  820. public void AddToProduct(ProductMm productMm)
  821. {
  822. base.AddObject(""Product"", productMm);
  823. }
  824. /// <summary>
  825. /// Deprecated Method for adding a new object to the ProductDetail EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  826. /// </summary>
  827. public void AddToProductDetail(ProductDetailMm productDetailMm)
  828. {
  829. base.AddObject(""ProductDetail"", productDetailMm);
  830. }
  831. /// <summary>
  832. /// Deprecated Method for adding a new object to the ProductReview EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  833. /// </summary>
  834. public void AddToProductReview(ProductReviewMm productReviewMm)
  835. {
  836. base.AddObject(""ProductReview"", productReviewMm);
  837. }
  838. /// <summary>
  839. /// Deprecated Method for adding a new object to the ProductPhoto EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  840. /// </summary>
  841. public void AddToProductPhoto(ProductPhotoMm productPhotoMm)
  842. {
  843. base.AddObject(""ProductPhoto"", productPhotoMm);
  844. }
  845. /// <summary>
  846. /// Deprecated Method for adding a new object to the ProductWebFeature EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  847. /// </summary>
  848. public void AddToProductWebFeature(ProductWebFeatureMm productWebFeatureMm)
  849. {
  850. base.AddObject(""ProductWebFeature"", productWebFeatureMm);
  851. }
  852. /// <summary>
  853. /// Deprecated Method for adding a new object to the Supplier EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  854. /// </summary>
  855. public void AddToSupplier(SupplierMm supplierMm)
  856. {
  857. base.AddObject(""Supplier"", supplierMm);
  858. }
  859. /// <summary>
  860. /// Deprecated Method for adding a new object to the SupplierLogo EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  861. /// </summary>
  862. public void AddToSupplierLogo(SupplierLogoMm supplierLogoMm)
  863. {
  864. base.AddObject(""SupplierLogo"", supplierLogoMm);
  865. }
  866. /// <summary>
  867. /// Deprecated Method for adding a new object to the SupplierInfo EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  868. /// </summary>
  869. public void AddToSupplierInfo(SupplierInfoMm supplierInfoMm)
  870. {
  871. base.AddObject(""SupplierInfo"", supplierInfoMm);
  872. }
  873. /// <summary>
  874. /// Deprecated Method for adding a new object to the CustomerInfo EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  875. /// </summary>
  876. public void AddToCustomerInfo(CustomerInfoMm customerInfoMm)
  877. {
  878. base.AddObject(""CustomerInfo"", customerInfoMm);
  879. }
  880. /// <summary>
  881. /// Deprecated Method for adding a new object to the Computer EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  882. /// </summary>
  883. public void AddToComputer(ComputerMm computerMm)
  884. {
  885. base.AddObject(""Computer"", computerMm);
  886. }
  887. /// <summary>
  888. /// Deprecated Method for adding a new object to the ComputerDetail EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  889. /// </summary>
  890. public void AddToComputerDetail(ComputerDetailMm computerDetailMm)
  891. {
  892. base.AddObject(""ComputerDetail"", computerDetailMm);
  893. }
  894. /// <summary>
  895. /// Deprecated Method for adding a new object to the Driver EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  896. /// </summary>
  897. public void AddToDriver(DriverMm driverMm)
  898. {
  899. base.AddObject(""Driver"", driverMm);
  900. }
  901. /// <summary>
  902. /// Deprecated Method for adding a new object to the License EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
  903. /// </summary>
  904. public void AddToLicense(LicenseMm licenseMm)
  905. {
  906. base.AddObject(""License"", licenseMm);
  907. }
  908. #endregion
  909. #region Function Imports
  910. /// <summary>
  911. /// No Metadata Documentation available.
  912. /// </summary>
  913. /// <param name=""modifiedDate"">No Metadata Documentation available.</param>
  914. private ObjectResult<AuditInfoMm> FunctionImport1(ObjectParameter modifiedDate)
  915. {
  916. return base.ExecuteFunction<AuditInfoMm>(""FunctionImport1"", modifiedDate);
  917. }
  918. /// <summary>
  919. /// No Metadata Documentation available.
  920. /// </summary>
  921. internal ObjectResult<CustomerMm> FunctionImport2()
  922. {
  923. return base.ExecuteFunction<CustomerMm>(""FunctionImport2"");
  924. }
  925. /// <summary>
  926. /// No Metadata Documentation available.
  927. /// </summary>
  928. /// <param name=""mergeOption""></param>
  929. internal ObjectResult<CustomerMm> FunctionImport2(MergeOption mergeOption)
  930. {
  931. return base.ExecuteFunction<CustomerMm>(""FunctionImport2"", mergeOption);
  932. }
  933. /// <summary>
  934. /// No Metadata Documentation available.
  935. /// </summary>
  936. /// <param name=""binary"">No Metadata Documentation available.</param>
  937. /// <param name=""bool"">No Metadata Documentation available.</param>
  938. /// <param name=""dateTime"">No Metadata Documentation available.</param>
  939. /// <param name=""decimal"">No Metadata Documentation available.</param>
  940. /// <param name=""float"">No Metadata Documentation available.</param>
  941. /// <param name=""guid"">No Metadata Documentation available.</param>
  942. /// <param name=""int"">No Metadata Documentation available.</param>
  943. /// <param name=""string"">No Metadata Documentation available.</param>
  944. public int ParameterTest(global::System.Byte[] binary, Nullable<global::System.Boolean> @bool, Nullable<global::System.DateTime> dateTime, Nullable<global::System.Decimal> @decimal, Nullable<global::System.Double> @float, Nullable<global::System.Guid> guid, ObjectParameter @int, ObjectParameter @string)
  945. {
  946. ObjectParameter binaryParameter;
  947. if (binary != null)
  948. {
  949. binaryParameter = new ObjectParameter(""binary"", binary);
  950. }
  951. else
  952. {
  953. binaryParameter = new ObjectParameter(""binary"", typeof(global::System.Byte[]));
  954. }
  955. ObjectParameter boolParameter;
  956. if (@bool.HasValue)
  957. {
  958. boolParameter = new ObjectParameter(""bool"", @bool);
  959. }
  960. else
  961. {
  962. boolParameter = new ObjectParameter(""bool"", typeof(global::System.Boolean));
  963. }
  964. ObjectParameter dateTimeParameter;
  965. if (dateTime.HasValue)
  966. {
  967. dateTimeParameter = new ObjectParameter(""dateTime"", dateTime);
  968. }
  969. else
  970. {
  971. dateTimeParameter = new ObjectParameter(""dateTime"", typeof(global::System.DateTime));
  972. }
  973. ObjectParameter decimalParameter;
  974. if (@decimal.HasValue)
  975. {
  976. decimalParameter = new ObjectParameter(""decimal"", @decimal);
  977. }
  978. else
  979. {
  980. decimalParameter = new ObjectParameter(""decimal"", typeof(global::System.Decimal));
  981. }
  982. ObjectParameter floatParameter;
  983. if (@float.HasValue)
  984. {
  985. floatParameter = new ObjectParameter(""float"", @float);
  986. }
  987. else
  988. {
  989. floatParameter = new ObjectParameter(""float"", typeof(global::System.Double));
  990. }
  991. ObjectParameter guidParameter;
  992. if (guid.HasValue)
  993. {
  994. guidParameter = new ObjectParameter(""guid"", guid);
  995. }
  996. else
  997. {
  998. guidParameter = new ObjectParameter(""guid"", typeof(global::System.Guid));
  999. }
  1000. return base.ExecuteFunction(""ParameterTest"", binaryParameter, boolParameter, dateTimeParameter, decimalParameter, floatParameter, guidParameter, @int, @string);
  1001. }
  1002. /// <summary>
  1003. /// No Metadata Documentation available.
  1004. /// </summary>
  1005. public ObjectResult<ComputerMm> EntityTypeTest()
  1006. {
  1007. return base.ExecuteFunction<ComputerMm>(""EntityTypeTest"");
  1008. }
  1009. /// <summary>
  1010. /// No Metadata Documentation available.
  1011. /// </summary>
  1012. /// <param name=""mergeOption""></param>
  1013. public ObjectResult<ComputerMm> EntityTypeTest(MergeOption mergeOption)
  1014. {
  1015. return base.ExecuteFunction<ComputerMm>(""EntityTypeTest"", mergeOption);
  1016. }
  1017. #endregion
  1018. }
  1019. #endregion
  1020. #region Entities
  1021. /// <summary>
  1022. /// No Metadata Documentation available.
  1023. /// </summary>
  1024. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""BackOrderLine2Mm"")]
  1025. [Serializable()]
  1026. [DataContractAttribute(IsReference=true)]
  1027. public partial class BackOrderLine2Mm : BackOrderLineMm
  1028. {
  1029. #region Factory Method
  1030. /// <summary>
  1031. /// Create a new BackOrderLine2Mm object.
  1032. /// </summary>
  1033. /// <param name=""orderId"">Initial value of the OrderId property.</param>
  1034. /// <param name=""productId"">Initial value of the ProductId property.</param>
  1035. /// <param name=""concurrencyToken"">Initial value of the ConcurrencyToken property.</param>
  1036. /// <param name=""eTA"">Initial value of the ETA property.</param>
  1037. public static BackOrderLine2Mm CreateBackOrderLine2Mm(global::System.Int32 orderId, global::System.Int32 productId, global::System.String concurrencyToken, global::System.DateTime eTA)
  1038. {
  1039. BackOrderLine2Mm backOrderLine2Mm = new BackOrderLine2Mm();
  1040. backOrderLine2Mm.OrderId = orderId;
  1041. backOrderLine2Mm.ProductId = productId;
  1042. backOrderLine2Mm.ConcurrencyToken = concurrencyToken;
  1043. backOrderLine2Mm.ETA = eTA;
  1044. return backOrderLine2Mm;
  1045. }
  1046. #endregion
  1047. }
  1048. /// <summary>
  1049. /// No Metadata Documentation available.
  1050. /// </summary>
  1051. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""BackOrderLineMm"")]
  1052. [Serializable()]
  1053. [DataContractAttribute(IsReference=true)]
  1054. [KnownTypeAttribute(typeof(BackOrderLine2Mm))]
  1055. public partial class BackOrderLineMm : OrderLineMm
  1056. {
  1057. #region Factory Method
  1058. /// <summary>
  1059. /// Create a new BackOrderLineMm object.
  1060. /// </summary>
  1061. /// <param name=""orderId"">Initial value of the OrderId property.</param>
  1062. /// <param name=""productId"">Initial value of the ProductId property.</param>
  1063. /// <param name=""concurrencyToken"">Initial value of the ConcurrencyToken property.</param>
  1064. /// <param name=""eTA"">Initial value of the ETA property.</param>
  1065. public static BackOrderLineMm CreateBackOrderLineMm(global::System.Int32 orderId, global::System.Int32 productId, global::System.String concurrencyToken, global::System.DateTime eTA)
  1066. {
  1067. BackOrderLineMm backOrderLineMm = new BackOrderLineMm();
  1068. backOrderLineMm.OrderId = orderId;
  1069. backOrderLineMm.ProductId = productId;
  1070. backOrderLineMm.ConcurrencyToken = concurrencyToken;
  1071. backOrderLineMm.ETA = eTA;
  1072. return backOrderLineMm;
  1073. }
  1074. #endregion
  1075. #region Simple Properties
  1076. /// <summary>
  1077. /// No Metadata Documentation available.
  1078. /// </summary>
  1079. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1080. [DataMemberAttribute()]
  1081. public global::System.DateTime ETA
  1082. {
  1083. get
  1084. {
  1085. return _ETA;
  1086. }
  1087. set
  1088. {
  1089. OnETAChanging(value);
  1090. ReportPropertyChanging(""ETA"");
  1091. _ETA = StructuralObject.SetValidValue(value, ""ETA"");
  1092. ReportPropertyChanged(""ETA"");
  1093. OnETAChanged();
  1094. }
  1095. }
  1096. private global::System.DateTime _ETA;
  1097. partial void OnETAChanging(global::System.DateTime value);
  1098. partial void OnETAChanged();
  1099. #endregion
  1100. #region Navigation Properties
  1101. /// <summary>
  1102. /// No Metadata Documentation available.
  1103. /// </summary>
  1104. [XmlIgnoreAttribute()]
  1105. [SoapIgnoreAttribute()]
  1106. [DataMemberAttribute()]
  1107. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Supplier_BackOrderLines"", ""Supplier"")]
  1108. public SupplierMm Supplier
  1109. {
  1110. get
  1111. {
  1112. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_BackOrderLines"", ""Supplier"").Value;
  1113. }
  1114. set
  1115. {
  1116. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_BackOrderLines"", ""Supplier"").Value = value;
  1117. }
  1118. }
  1119. /// <summary>
  1120. /// No Metadata Documentation available.
  1121. /// </summary>
  1122. [BrowsableAttribute(false)]
  1123. [DataMemberAttribute()]
  1124. public EntityReference<SupplierMm> SupplierReference
  1125. {
  1126. get
  1127. {
  1128. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_BackOrderLines"", ""Supplier"");
  1129. }
  1130. set
  1131. {
  1132. if ((value != null))
  1133. {
  1134. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_BackOrderLines"", ""Supplier"", value);
  1135. }
  1136. }
  1137. }
  1138. #endregion
  1139. }
  1140. /// <summary>
  1141. /// No Metadata Documentation available.
  1142. /// </summary>
  1143. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""BarcodeDetailMm"")]
  1144. [Serializable()]
  1145. [DataContractAttribute(IsReference=true)]
  1146. public partial class BarcodeDetailMm : EntityObject
  1147. {
  1148. #region Factory Method
  1149. /// <summary>
  1150. /// Create a new BarcodeDetailMm object.
  1151. /// </summary>
  1152. /// <param name=""code"">Initial value of the Code property.</param>
  1153. /// <param name=""registeredTo"">Initial value of the RegisteredTo property.</param>
  1154. public static BarcodeDetailMm CreateBarcodeDetailMm(global::System.Byte[] code, global::System.String registeredTo)
  1155. {
  1156. BarcodeDetailMm barcodeDetailMm = new BarcodeDetailMm();
  1157. barcodeDetailMm.Code = code;
  1158. barcodeDetailMm.RegisteredTo = registeredTo;
  1159. return barcodeDetailMm;
  1160. }
  1161. #endregion
  1162. #region Simple Properties
  1163. /// <summary>
  1164. /// No Metadata Documentation available.
  1165. /// </summary>
  1166. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  1167. [DataMemberAttribute()]
  1168. public global::System.Byte[] Code
  1169. {
  1170. get
  1171. {
  1172. return StructuralObject.GetValidValue(_Code);
  1173. }
  1174. set
  1175. {
  1176. if (!StructuralObject.BinaryEquals(_Code, value))
  1177. {
  1178. OnCodeChanging(value);
  1179. ReportPropertyChanging(""Code"");
  1180. _Code = StructuralObject.SetValidValue(value, false, ""Code"");
  1181. ReportPropertyChanged(""Code"");
  1182. OnCodeChanged();
  1183. }
  1184. }
  1185. }
  1186. private global::System.Byte[] _Code;
  1187. partial void OnCodeChanging(global::System.Byte[] value);
  1188. partial void OnCodeChanged();
  1189. /// <summary>
  1190. /// No Metadata Documentation available.
  1191. /// </summary>
  1192. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1193. [DataMemberAttribute()]
  1194. public global::System.String RegisteredTo
  1195. {
  1196. get
  1197. {
  1198. return _RegisteredTo;
  1199. }
  1200. set
  1201. {
  1202. OnRegisteredToChanging(value);
  1203. ReportPropertyChanging(""RegisteredTo"");
  1204. _RegisteredTo = StructuralObject.SetValidValue(value, false, ""RegisteredTo"");
  1205. ReportPropertyChanged(""RegisteredTo"");
  1206. OnRegisteredToChanged();
  1207. }
  1208. }
  1209. private global::System.String _RegisteredTo;
  1210. partial void OnRegisteredToChanging(global::System.String value);
  1211. partial void OnRegisteredToChanged();
  1212. #endregion
  1213. }
  1214. /// <summary>
  1215. /// No Metadata Documentation available.
  1216. /// </summary>
  1217. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""BarcodeMm"")]
  1218. [Serializable()]
  1219. [DataContractAttribute(IsReference=true)]
  1220. public partial class BarcodeMm : EntityObject
  1221. {
  1222. #region Factory Method
  1223. /// <summary>
  1224. /// Create a new BarcodeMm object.
  1225. /// </summary>
  1226. /// <param name=""code"">Initial value of the Code property.</param>
  1227. /// <param name=""productId"">Initial value of the ProductId property.</param>
  1228. /// <param name=""text"">Initial value of the Text property.</param>
  1229. public static BarcodeMm CreateBarcodeMm(global::System.Byte[] code, global::System.Int32 productId, global::System.String text)
  1230. {
  1231. BarcodeMm barcodeMm = new BarcodeMm();
  1232. barcodeMm.Code = code;
  1233. barcodeMm.ProductId = productId;
  1234. barcodeMm.Text = text;
  1235. return barcodeMm;
  1236. }
  1237. #endregion
  1238. #region Simple Properties
  1239. /// <summary>
  1240. /// No Metadata Documentation available.
  1241. /// </summary>
  1242. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  1243. [DataMemberAttribute()]
  1244. public global::System.Byte[] Code
  1245. {
  1246. get
  1247. {
  1248. return StructuralObject.GetValidValue(_Code);
  1249. }
  1250. set
  1251. {
  1252. if (!StructuralObject.BinaryEquals(_Code, value))
  1253. {
  1254. OnCodeChanging(value);
  1255. ReportPropertyChanging(""Code"");
  1256. _Code = StructuralObject.SetValidValue(value, false, ""Code"");
  1257. ReportPropertyChanged(""Code"");
  1258. OnCodeChanged();
  1259. }
  1260. }
  1261. }
  1262. private global::System.Byte[] _Code;
  1263. partial void OnCodeChanging(global::System.Byte[] value);
  1264. partial void OnCodeChanged();
  1265. /// <summary>
  1266. /// No Metadata Documentation available.
  1267. /// </summary>
  1268. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1269. [DataMemberAttribute()]
  1270. public global::System.Int32 ProductId
  1271. {
  1272. get
  1273. {
  1274. return _ProductId;
  1275. }
  1276. set
  1277. {
  1278. OnProductIdChanging(value);
  1279. ReportPropertyChanging(""ProductId"");
  1280. _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
  1281. ReportPropertyChanged(""ProductId"");
  1282. OnProductIdChanged();
  1283. }
  1284. }
  1285. private global::System.Int32 _ProductId;
  1286. partial void OnProductIdChanging(global::System.Int32 value);
  1287. partial void OnProductIdChanged();
  1288. /// <summary>
  1289. /// No Metadata Documentation available.
  1290. /// </summary>
  1291. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1292. [DataMemberAttribute()]
  1293. public global::System.String Text
  1294. {
  1295. get
  1296. {
  1297. return _Text;
  1298. }
  1299. set
  1300. {
  1301. OnTextChanging(value);
  1302. ReportPropertyChanging(""Text"");
  1303. _Text = StructuralObject.SetValidValue(value, false, ""Text"");
  1304. ReportPropertyChanged(""Text"");
  1305. OnTextChanged();
  1306. }
  1307. }
  1308. private global::System.String _Text;
  1309. partial void OnTextChanging(global::System.String value);
  1310. partial void OnTextChanged();
  1311. #endregion
  1312. #region Navigation Properties
  1313. /// <summary>
  1314. /// No Metadata Documentation available.
  1315. /// </summary>
  1316. [XmlIgnoreAttribute()]
  1317. [SoapIgnoreAttribute()]
  1318. [DataMemberAttribute()]
  1319. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_Barcodes"", ""Product"")]
  1320. public ProductMm Product
  1321. {
  1322. get
  1323. {
  1324. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_Barcodes"", ""Product"").Value;
  1325. }
  1326. set
  1327. {
  1328. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_Barcodes"", ""Product"").Value = value;
  1329. }
  1330. }
  1331. /// <summary>
  1332. /// No Metadata Documentation available.
  1333. /// </summary>
  1334. [BrowsableAttribute(false)]
  1335. [DataMemberAttribute()]
  1336. public EntityReference<ProductMm> ProductReference
  1337. {
  1338. get
  1339. {
  1340. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_Barcodes"", ""Product"");
  1341. }
  1342. set
  1343. {
  1344. if ((value != null))
  1345. {
  1346. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductMm>(""MonsterNamespace.Product_Barcodes"", ""Product"", value);
  1347. }
  1348. }
  1349. }
  1350. /// <summary>
  1351. /// No Metadata Documentation available.
  1352. /// </summary>
  1353. [XmlIgnoreAttribute()]
  1354. [SoapIgnoreAttribute()]
  1355. [DataMemberAttribute()]
  1356. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Barcode_IncorrectScanExpected"", ""Expected"")]
  1357. public EntityCollection<IncorrectScanMm> BadScans
  1358. {
  1359. get
  1360. {
  1361. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<IncorrectScanMm>(""MonsterNamespace.Barcode_IncorrectScanExpected"", ""Expected"");
  1362. }
  1363. set
  1364. {
  1365. if ((value != null))
  1366. {
  1367. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<IncorrectScanMm>(""MonsterNamespace.Barcode_IncorrectScanExpected"", ""Expected"", value);
  1368. }
  1369. }
  1370. }
  1371. /// <summary>
  1372. /// No Metadata Documentation available.
  1373. /// </summary>
  1374. [XmlIgnoreAttribute()]
  1375. [SoapIgnoreAttribute()]
  1376. [DataMemberAttribute()]
  1377. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Barcode_BarcodeDetail"", ""BarcodeDetail"")]
  1378. public BarcodeDetailMm Detail
  1379. {
  1380. get
  1381. {
  1382. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeDetailMm>(""MonsterNamespace.Barcode_BarcodeDetail"", ""BarcodeDetail"").Value;
  1383. }
  1384. set
  1385. {
  1386. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeDetailMm>(""MonsterNamespace.Barcode_BarcodeDetail"", ""BarcodeDetail"").Value = value;
  1387. }
  1388. }
  1389. /// <summary>
  1390. /// No Metadata Documentation available.
  1391. /// </summary>
  1392. [BrowsableAttribute(false)]
  1393. [DataMemberAttribute()]
  1394. public EntityReference<BarcodeDetailMm> DetailReference
  1395. {
  1396. get
  1397. {
  1398. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeDetailMm>(""MonsterNamespace.Barcode_BarcodeDetail"", ""BarcodeDetail"");
  1399. }
  1400. set
  1401. {
  1402. if ((value != null))
  1403. {
  1404. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<BarcodeDetailMm>(""MonsterNamespace.Barcode_BarcodeDetail"", ""BarcodeDetail"", value);
  1405. }
  1406. }
  1407. }
  1408. #endregion
  1409. }
  1410. /// <summary>
  1411. /// No Metadata Documentation available.
  1412. /// </summary>
  1413. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ComplaintMm"")]
  1414. [Serializable()]
  1415. [DataContractAttribute(IsReference=true)]
  1416. public partial class ComplaintMm : EntityObject
  1417. {
  1418. #region Factory Method
  1419. /// <summary>
  1420. /// Create a new ComplaintMm object.
  1421. /// </summary>
  1422. /// <param name=""complaintId"">Initial value of the ComplaintId property.</param>
  1423. /// <param name=""logged"">Initial value of the Logged property.</param>
  1424. /// <param name=""details"">Initial value of the Details property.</param>
  1425. public static ComplaintMm CreateComplaintMm(global::System.Int32 complaintId, global::System.DateTime logged, global::System.String details)
  1426. {
  1427. ComplaintMm complaintMm = new ComplaintMm();
  1428. complaintMm.ComplaintId = complaintId;
  1429. complaintMm.Logged = logged;
  1430. complaintMm.Details = details;
  1431. return complaintMm;
  1432. }
  1433. #endregion
  1434. #region Simple Properties
  1435. /// <summary>
  1436. /// No Metadata Documentation available.
  1437. /// </summary>
  1438. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  1439. [DataMemberAttribute()]
  1440. public global::System.Int32 ComplaintId
  1441. {
  1442. get
  1443. {
  1444. return _ComplaintId;
  1445. }
  1446. set
  1447. {
  1448. if (_ComplaintId != value)
  1449. {
  1450. OnComplaintIdChanging(value);
  1451. ReportPropertyChanging(""ComplaintId"");
  1452. _ComplaintId = StructuralObject.SetValidValue(value, ""ComplaintId"");
  1453. ReportPropertyChanged(""ComplaintId"");
  1454. OnComplaintIdChanged();
  1455. }
  1456. }
  1457. }
  1458. private global::System.Int32 _ComplaintId;
  1459. partial void OnComplaintIdChanging(global::System.Int32 value);
  1460. partial void OnComplaintIdChanged();
  1461. /// <summary>
  1462. /// No Metadata Documentation available.
  1463. /// </summary>
  1464. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  1465. [DataMemberAttribute()]
  1466. public Nullable<global::System.Int32> CustomerId
  1467. {
  1468. get
  1469. {
  1470. return _CustomerId;
  1471. }
  1472. set
  1473. {
  1474. OnCustomerIdChanging(value);
  1475. ReportPropertyChanging(""CustomerId"");
  1476. _CustomerId = StructuralObject.SetValidValue(value, ""CustomerId"");
  1477. ReportPropertyChanged(""CustomerId"");
  1478. OnCustomerIdChanged();
  1479. }
  1480. }
  1481. private Nullable<global::System.Int32> _CustomerId;
  1482. partial void OnCustomerIdChanging(Nullable<global::System.Int32> value);
  1483. partial void OnCustomerIdChanged();
  1484. /// <summary>
  1485. /// No Metadata Documentation available.
  1486. /// </summary>
  1487. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1488. [DataMemberAttribute()]
  1489. public global::System.DateTime Logged
  1490. {
  1491. get
  1492. {
  1493. return _Logged;
  1494. }
  1495. set
  1496. {
  1497. OnLoggedChanging(value);
  1498. ReportPropertyChanging(""Logged"");
  1499. _Logged = StructuralObject.SetValidValue(value, ""Logged"");
  1500. ReportPropertyChanged(""Logged"");
  1501. OnLoggedChanged();
  1502. }
  1503. }
  1504. private global::System.DateTime _Logged;
  1505. partial void OnLoggedChanging(global::System.DateTime value);
  1506. partial void OnLoggedChanged();
  1507. /// <summary>
  1508. /// No Metadata Documentation available.
  1509. /// </summary>
  1510. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1511. [DataMemberAttribute()]
  1512. public global::System.String Details
  1513. {
  1514. get
  1515. {
  1516. return _Details;
  1517. }
  1518. set
  1519. {
  1520. OnDetailsChanging(value);
  1521. ReportPropertyChanging(""Details"");
  1522. _Details = StructuralObject.SetValidValue(value, false, ""Details"");
  1523. ReportPropertyChanged(""Details"");
  1524. OnDetailsChanged();
  1525. }
  1526. }
  1527. private global::System.String _Details;
  1528. partial void OnDetailsChanging(global::System.String value);
  1529. partial void OnDetailsChanged();
  1530. #endregion
  1531. #region Navigation Properties
  1532. /// <summary>
  1533. /// No Metadata Documentation available.
  1534. /// </summary>
  1535. [XmlIgnoreAttribute()]
  1536. [SoapIgnoreAttribute()]
  1537. [DataMemberAttribute()]
  1538. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Customer_Complaints"", ""Customer"")]
  1539. public CustomerMm Customer
  1540. {
  1541. get
  1542. {
  1543. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Complaints"", ""Customer"").Value;
  1544. }
  1545. set
  1546. {
  1547. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Complaints"", ""Customer"").Value = value;
  1548. }
  1549. }
  1550. /// <summary>
  1551. /// No Metadata Documentation available.
  1552. /// </summary>
  1553. [BrowsableAttribute(false)]
  1554. [DataMemberAttribute()]
  1555. public EntityReference<CustomerMm> CustomerReference
  1556. {
  1557. get
  1558. {
  1559. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Complaints"", ""Customer"");
  1560. }
  1561. set
  1562. {
  1563. if ((value != null))
  1564. {
  1565. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Complaints"", ""Customer"", value);
  1566. }
  1567. }
  1568. }
  1569. /// <summary>
  1570. /// No Metadata Documentation available.
  1571. /// </summary>
  1572. [XmlIgnoreAttribute()]
  1573. [SoapIgnoreAttribute()]
  1574. [DataMemberAttribute()]
  1575. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Complaint_Resolution"", ""Resolution"")]
  1576. public ResolutionMm Resolution
  1577. {
  1578. get
  1579. {
  1580. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ResolutionMm>(""MonsterNamespace.Complaint_Resolution"", ""Resolution"").Value;
  1581. }
  1582. set
  1583. {
  1584. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ResolutionMm>(""MonsterNamespace.Complaint_Resolution"", ""Resolution"").Value = value;
  1585. }
  1586. }
  1587. /// <summary>
  1588. /// No Metadata Documentation available.
  1589. /// </summary>
  1590. [BrowsableAttribute(false)]
  1591. [DataMemberAttribute()]
  1592. public EntityReference<ResolutionMm> ResolutionReference
  1593. {
  1594. get
  1595. {
  1596. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ResolutionMm>(""MonsterNamespace.Complaint_Resolution"", ""Resolution"");
  1597. }
  1598. set
  1599. {
  1600. if ((value != null))
  1601. {
  1602. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ResolutionMm>(""MonsterNamespace.Complaint_Resolution"", ""Resolution"", value);
  1603. }
  1604. }
  1605. }
  1606. #endregion
  1607. }
  1608. /// <summary>
  1609. /// No Metadata Documentation available.
  1610. /// </summary>
  1611. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ComputerDetailMm"")]
  1612. [Serializable()]
  1613. [DataContractAttribute(IsReference=true)]
  1614. public partial class ComputerDetailMm : EntityObject
  1615. {
  1616. #region Factory Method
  1617. /// <summary>
  1618. /// Create a new ComputerDetailMm object.
  1619. /// </summary>
  1620. /// <param name=""computerDetailId"">Initial value of the ComputerDetailId property.</param>
  1621. /// <param name=""manufacturer"">Initial value of the Manufacturer property.</param>
  1622. /// <param name=""model"">Initial value of the Model property.</param>
  1623. /// <param name=""serial"">Initial value of the Serial property.</param>
  1624. /// <param name=""specifications"">Initial value of the Specifications property.</param>
  1625. /// <param name=""purchaseDate"">Initial value of the PurchaseDate property.</param>
  1626. /// <param name=""dimensions"">Initial value of the Dimensions property.</param>
  1627. public static ComputerDetailMm CreateComputerDetailMm(global::System.Int32 computerDetailId, global::System.String manufacturer, global::System.String model, global::System.String serial, global::System.String specifications, global::System.DateTime purchaseDate, DimensionsMm dimensions)
  1628. {
  1629. ComputerDetailMm computerDetailMm = new ComputerDetailMm();
  1630. computerDetailMm.ComputerDetailId = computerDetailId;
  1631. computerDetailMm.Manufacturer = manufacturer;
  1632. computerDetailMm.Model = model;
  1633. computerDetailMm.Serial = serial;
  1634. computerDetailMm.Specifications = specifications;
  1635. computerDetailMm.PurchaseDate = purchaseDate;
  1636. computerDetailMm.Dimensions = StructuralObject.VerifyComplexObjectIsNotNull(dimensions, ""Dimensions"");
  1637. return computerDetailMm;
  1638. }
  1639. #endregion
  1640. #region Simple Properties
  1641. /// <summary>
  1642. /// No Metadata Documentation available.
  1643. /// </summary>
  1644. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  1645. [DataMemberAttribute()]
  1646. public global::System.Int32 ComputerDetailId
  1647. {
  1648. get
  1649. {
  1650. return _ComputerDetailId;
  1651. }
  1652. set
  1653. {
  1654. if (_ComputerDetailId != value)
  1655. {
  1656. OnComputerDetailIdChanging(value);
  1657. ReportPropertyChanging(""ComputerDetailId"");
  1658. _ComputerDetailId = StructuralObject.SetValidValue(value, ""ComputerDetailId"");
  1659. ReportPropertyChanged(""ComputerDetailId"");
  1660. OnComputerDetailIdChanged();
  1661. }
  1662. }
  1663. }
  1664. private global::System.Int32 _ComputerDetailId;
  1665. partial void OnComputerDetailIdChanging(global::System.Int32 value);
  1666. partial void OnComputerDetailIdChanged();
  1667. /// <summary>
  1668. /// No Metadata Documentation available.
  1669. /// </summary>
  1670. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1671. [DataMemberAttribute()]
  1672. public global::System.String Manufacturer
  1673. {
  1674. get
  1675. {
  1676. return _Manufacturer;
  1677. }
  1678. set
  1679. {
  1680. OnManufacturerChanging(value);
  1681. ReportPropertyChanging(""Manufacturer"");
  1682. _Manufacturer = StructuralObject.SetValidValue(value, false, ""Manufacturer"");
  1683. ReportPropertyChanged(""Manufacturer"");
  1684. OnManufacturerChanged();
  1685. }
  1686. }
  1687. private global::System.String _Manufacturer;
  1688. partial void OnManufacturerChanging(global::System.String value);
  1689. partial void OnManufacturerChanged();
  1690. /// <summary>
  1691. /// No Metadata Documentation available.
  1692. /// </summary>
  1693. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1694. [DataMemberAttribute()]
  1695. public global::System.String Model
  1696. {
  1697. get
  1698. {
  1699. return _Model;
  1700. }
  1701. set
  1702. {
  1703. OnModelChanging(value);
  1704. ReportPropertyChanging(""Model"");
  1705. _Model = StructuralObject.SetValidValue(value, false, ""Model"");
  1706. ReportPropertyChanged(""Model"");
  1707. OnModelChanged();
  1708. }
  1709. }
  1710. private global::System.String _Model;
  1711. partial void OnModelChanging(global::System.String value);
  1712. partial void OnModelChanged();
  1713. /// <summary>
  1714. /// No Metadata Documentation available.
  1715. /// </summary>
  1716. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1717. [DataMemberAttribute()]
  1718. public global::System.String Serial
  1719. {
  1720. get
  1721. {
  1722. return _Serial;
  1723. }
  1724. set
  1725. {
  1726. OnSerialChanging(value);
  1727. ReportPropertyChanging(""Serial"");
  1728. _Serial = StructuralObject.SetValidValue(value, false, ""Serial"");
  1729. ReportPropertyChanged(""Serial"");
  1730. OnSerialChanged();
  1731. }
  1732. }
  1733. private global::System.String _Serial;
  1734. partial void OnSerialChanging(global::System.String value);
  1735. partial void OnSerialChanged();
  1736. /// <summary>
  1737. /// No Metadata Documentation available.
  1738. /// </summary>
  1739. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1740. [DataMemberAttribute()]
  1741. public global::System.String Specifications
  1742. {
  1743. get
  1744. {
  1745. return _Specifications;
  1746. }
  1747. set
  1748. {
  1749. OnSpecificationsChanging(value);
  1750. ReportPropertyChanging(""Specifications"");
  1751. _Specifications = StructuralObject.SetValidValue(value, false, ""Specifications"");
  1752. ReportPropertyChanged(""Specifications"");
  1753. OnSpecificationsChanged();
  1754. }
  1755. }
  1756. private global::System.String _Specifications;
  1757. partial void OnSpecificationsChanging(global::System.String value);
  1758. partial void OnSpecificationsChanged();
  1759. /// <summary>
  1760. /// No Metadata Documentation available.
  1761. /// </summary>
  1762. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1763. [DataMemberAttribute()]
  1764. public global::System.DateTime PurchaseDate
  1765. {
  1766. get
  1767. {
  1768. return _PurchaseDate;
  1769. }
  1770. set
  1771. {
  1772. OnPurchaseDateChanging(value);
  1773. ReportPropertyChanging(""PurchaseDate"");
  1774. _PurchaseDate = StructuralObject.SetValidValue(value, ""PurchaseDate"");
  1775. ReportPropertyChanged(""PurchaseDate"");
  1776. OnPurchaseDateChanged();
  1777. }
  1778. }
  1779. private global::System.DateTime _PurchaseDate;
  1780. partial void OnPurchaseDateChanging(global::System.DateTime value);
  1781. partial void OnPurchaseDateChanged();
  1782. #endregion
  1783. #region Complex Properties
  1784. /// <summary>
  1785. /// No Metadata Documentation available.
  1786. /// </summary>
  1787. [EdmComplexPropertyAttribute()]
  1788. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  1789. [XmlElement(IsNullable=true)]
  1790. [SoapElement(IsNullable=true)]
  1791. [DataMemberAttribute()]
  1792. public DimensionsMm Dimensions
  1793. {
  1794. get
  1795. {
  1796. _Dimensions = GetValidValue(_Dimensions, ""Dimensions"", false, _DimensionsInitialized);
  1797. _DimensionsInitialized = true;
  1798. return _Dimensions;
  1799. }
  1800. set
  1801. {
  1802. OnDimensionsChanging(value);
  1803. ReportPropertyChanging(""Dimensions"");
  1804. _Dimensions = SetValidValue(_Dimensions, value, ""Dimensions"");
  1805. _DimensionsInitialized = true;
  1806. ReportPropertyChanged(""Dimensions"");
  1807. OnDimensionsChanged();
  1808. }
  1809. }
  1810. private DimensionsMm _Dimensions;
  1811. private bool _DimensionsInitialized;
  1812. partial void OnDimensionsChanging(DimensionsMm value);
  1813. partial void OnDimensionsChanged();
  1814. #endregion
  1815. #region Navigation Properties
  1816. /// <summary>
  1817. /// No Metadata Documentation available.
  1818. /// </summary>
  1819. [XmlIgnoreAttribute()]
  1820. [SoapIgnoreAttribute()]
  1821. [DataMemberAttribute()]
  1822. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Computer_ComputerDetail"", ""Computer"")]
  1823. public ComputerMm Computer
  1824. {
  1825. get
  1826. {
  1827. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComputerMm>(""MonsterNamespace.Computer_ComputerDetail"", ""Computer"").Value;
  1828. }
  1829. set
  1830. {
  1831. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComputerMm>(""MonsterNamespace.Computer_ComputerDetail"", ""Computer"").Value = value;
  1832. }
  1833. }
  1834. /// <summary>
  1835. /// No Metadata Documentation available.
  1836. /// </summary>
  1837. [BrowsableAttribute(false)]
  1838. [DataMemberAttribute()]
  1839. public EntityReference<ComputerMm> ComputerReference
  1840. {
  1841. get
  1842. {
  1843. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComputerMm>(""MonsterNamespace.Computer_ComputerDetail"", ""Computer"");
  1844. }
  1845. set
  1846. {
  1847. if ((value != null))
  1848. {
  1849. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ComputerMm>(""MonsterNamespace.Computer_ComputerDetail"", ""Computer"", value);
  1850. }
  1851. }
  1852. }
  1853. #endregion
  1854. }
  1855. /// <summary>
  1856. /// No Metadata Documentation available.
  1857. /// </summary>
  1858. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ComputerMm"")]
  1859. [Serializable()]
  1860. [DataContractAttribute(IsReference=true)]
  1861. public partial class ComputerMm : EntityObject
  1862. {
  1863. #region Factory Method
  1864. /// <summary>
  1865. /// Create a new ComputerMm object.
  1866. /// </summary>
  1867. /// <param name=""computerId"">Initial value of the ComputerId property.</param>
  1868. /// <param name=""name"">Initial value of the Name property.</param>
  1869. public static ComputerMm CreateComputerMm(global::System.Int32 computerId, global::System.String name)
  1870. {
  1871. ComputerMm computerMm = new ComputerMm();
  1872. computerMm.ComputerId = computerId;
  1873. computerMm.Name = name;
  1874. return computerMm;
  1875. }
  1876. #endregion
  1877. #region Simple Properties
  1878. /// <summary>
  1879. /// No Metadata Documentation available.
  1880. /// </summary>
  1881. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  1882. [DataMemberAttribute()]
  1883. public global::System.Int32 ComputerId
  1884. {
  1885. get
  1886. {
  1887. return _ComputerId;
  1888. }
  1889. set
  1890. {
  1891. if (_ComputerId != value)
  1892. {
  1893. OnComputerIdChanging(value);
  1894. ReportPropertyChanging(""ComputerId"");
  1895. _ComputerId = StructuralObject.SetValidValue(value, ""ComputerId"");
  1896. ReportPropertyChanged(""ComputerId"");
  1897. OnComputerIdChanged();
  1898. }
  1899. }
  1900. }
  1901. private global::System.Int32 _ComputerId;
  1902. partial void OnComputerIdChanging(global::System.Int32 value);
  1903. partial void OnComputerIdChanged();
  1904. /// <summary>
  1905. /// No Metadata Documentation available.
  1906. /// </summary>
  1907. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  1908. [DataMemberAttribute()]
  1909. public global::System.String Name
  1910. {
  1911. get
  1912. {
  1913. return _Name;
  1914. }
  1915. set
  1916. {
  1917. OnNameChanging(value);
  1918. ReportPropertyChanging(""Name"");
  1919. _Name = StructuralObject.SetValidValue(value, false, ""Name"");
  1920. ReportPropertyChanged(""Name"");
  1921. OnNameChanged();
  1922. }
  1923. }
  1924. private global::System.String _Name;
  1925. partial void OnNameChanging(global::System.String value);
  1926. partial void OnNameChanged();
  1927. #endregion
  1928. #region Navigation Properties
  1929. /// <summary>
  1930. /// No Metadata Documentation available.
  1931. /// </summary>
  1932. [XmlIgnoreAttribute()]
  1933. [SoapIgnoreAttribute()]
  1934. [DataMemberAttribute()]
  1935. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Computer_ComputerDetail"", ""ComputerDetail"")]
  1936. public ComputerDetailMm ComputerDetail
  1937. {
  1938. get
  1939. {
  1940. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComputerDetailMm>(""MonsterNamespace.Computer_ComputerDetail"", ""ComputerDetail"").Value;
  1941. }
  1942. set
  1943. {
  1944. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComputerDetailMm>(""MonsterNamespace.Computer_ComputerDetail"", ""ComputerDetail"").Value = value;
  1945. }
  1946. }
  1947. /// <summary>
  1948. /// No Metadata Documentation available.
  1949. /// </summary>
  1950. [BrowsableAttribute(false)]
  1951. [DataMemberAttribute()]
  1952. public EntityReference<ComputerDetailMm> ComputerDetailReference
  1953. {
  1954. get
  1955. {
  1956. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComputerDetailMm>(""MonsterNamespace.Computer_ComputerDetail"", ""ComputerDetail"");
  1957. }
  1958. set
  1959. {
  1960. if ((value != null))
  1961. {
  1962. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ComputerDetailMm>(""MonsterNamespace.Computer_ComputerDetail"", ""ComputerDetail"", value);
  1963. }
  1964. }
  1965. }
  1966. #endregion
  1967. }
  1968. /// <summary>
  1969. /// No Metadata Documentation available.
  1970. /// </summary>
  1971. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""CustomerInfoMm"")]
  1972. [Serializable()]
  1973. [DataContractAttribute(IsReference=true)]
  1974. public partial class CustomerInfoMm : EntityObject
  1975. {
  1976. #region Factory Method
  1977. /// <summary>
  1978. /// Create a new CustomerInfoMm object.
  1979. /// </summary>
  1980. /// <param name=""customerInfoId"">Initial value of the CustomerInfoId property.</param>
  1981. /// <param name=""information"">Initial value of the Information property.</param>
  1982. public static CustomerInfoMm CreateCustomerInfoMm(global::System.Int32 customerInfoId, global::System.String information)
  1983. {
  1984. CustomerInfoMm customerInfoMm = new CustomerInfoMm();
  1985. customerInfoMm.CustomerInfoId = customerInfoId;
  1986. customerInfoMm.Information = information;
  1987. return customerInfoMm;
  1988. }
  1989. #endregion
  1990. #region Simple Properties
  1991. /// <summary>
  1992. /// No Metadata Documentation available.
  1993. /// </summary>
  1994. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  1995. [DataMemberAttribute()]
  1996. public global::System.Int32 CustomerInfoId
  1997. {
  1998. get
  1999. {
  2000. return _CustomerInfoId;
  2001. }
  2002. set
  2003. {
  2004. if (_CustomerInfoId != value)
  2005. {
  2006. OnCustomerInfoIdChanging(value);
  2007. ReportPropertyChanging(""CustomerInfoId"");
  2008. _CustomerInfoId = StructuralObject.SetValidValue(value, ""CustomerInfoId"");
  2009. ReportPropertyChanged(""CustomerInfoId"");
  2010. OnCustomerInfoIdChanged();
  2011. }
  2012. }
  2013. }
  2014. private global::System.Int32 _CustomerInfoId;
  2015. partial void OnCustomerInfoIdChanging(global::System.Int32 value);
  2016. partial void OnCustomerInfoIdChanged();
  2017. /// <summary>
  2018. /// No Metadata Documentation available.
  2019. /// </summary>
  2020. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  2021. [DataMemberAttribute()]
  2022. public global::System.String Information
  2023. {
  2024. get
  2025. {
  2026. return _Information;
  2027. }
  2028. set
  2029. {
  2030. OnInformationChanging(value);
  2031. ReportPropertyChanging(""Information"");
  2032. _Information = StructuralObject.SetValidValue(value, false, ""Information"");
  2033. ReportPropertyChanged(""Information"");
  2034. OnInformationChanged();
  2035. }
  2036. }
  2037. private global::System.String _Information;
  2038. partial void OnInformationChanging(global::System.String value);
  2039. partial void OnInformationChanged();
  2040. #endregion
  2041. }
  2042. /// <summary>
  2043. /// No Metadata Documentation available.
  2044. /// </summary>
  2045. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""CustomerMm"")]
  2046. [Serializable()]
  2047. [DataContractAttribute(IsReference=true)]
  2048. public partial class CustomerMm : EntityObject
  2049. {
  2050. #region Factory Method
  2051. /// <summary>
  2052. /// Create a new CustomerMm object.
  2053. /// </summary>
  2054. /// <param name=""customerId"">Initial value of the CustomerId property.</param>
  2055. /// <param name=""name"">Initial value of the Name property.</param>
  2056. /// <param name=""contactInfo"">Initial value of the ContactInfo property.</param>
  2057. /// <param name=""auditing"">Initial value of the Auditing property.</param>
  2058. public static CustomerMm CreateCustomerMm(global::System.Int32 customerId, global::System.String name, ContactDetailsMm contactInfo, AuditInfoMm auditing)
  2059. {
  2060. CustomerMm customerMm = new CustomerMm();
  2061. customerMm.CustomerId = customerId;
  2062. customerMm.Name = name;
  2063. customerMm.ContactInfo = StructuralObject.VerifyComplexObjectIsNotNull(contactInfo, ""ContactInfo"");
  2064. customerMm.Auditing = StructuralObject.VerifyComplexObjectIsNotNull(auditing, ""Auditing"");
  2065. return customerMm;
  2066. }
  2067. #endregion
  2068. #region Simple Properties
  2069. /// <summary>
  2070. /// No Metadata Documentation available.
  2071. /// </summary>
  2072. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  2073. [DataMemberAttribute()]
  2074. public global::System.Int32 CustomerId
  2075. {
  2076. get
  2077. {
  2078. return _CustomerId;
  2079. }
  2080. set
  2081. {
  2082. if (_CustomerId != value)
  2083. {
  2084. OnCustomerIdChanging(value);
  2085. ReportPropertyChanging(""CustomerId"");
  2086. _CustomerId = StructuralObject.SetValidValue(value, ""CustomerId"");
  2087. ReportPropertyChanged(""CustomerId"");
  2088. OnCustomerIdChanged();
  2089. }
  2090. }
  2091. }
  2092. private global::System.Int32 _CustomerId;
  2093. partial void OnCustomerIdChanging(global::System.Int32 value);
  2094. partial void OnCustomerIdChanged();
  2095. /// <summary>
  2096. /// No Metadata Documentation available.
  2097. /// </summary>
  2098. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  2099. [DataMemberAttribute()]
  2100. public global::System.String Name
  2101. {
  2102. get
  2103. {
  2104. return _Name;
  2105. }
  2106. set
  2107. {
  2108. OnNameChanging(value);
  2109. ReportPropertyChanging(""Name"");
  2110. _Name = StructuralObject.SetValidValue(value, false, ""Name"");
  2111. ReportPropertyChanged(""Name"");
  2112. OnNameChanged();
  2113. }
  2114. }
  2115. private global::System.String _Name;
  2116. partial void OnNameChanging(global::System.String value);
  2117. partial void OnNameChanged();
  2118. #endregion
  2119. #region Complex Properties
  2120. /// <summary>
  2121. /// No Metadata Documentation available.
  2122. /// </summary>
  2123. [EdmComplexPropertyAttribute()]
  2124. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  2125. [XmlElement(IsNullable=true)]
  2126. [SoapElement(IsNullable=true)]
  2127. [DataMemberAttribute()]
  2128. public ContactDetailsMm ContactInfo
  2129. {
  2130. get
  2131. {
  2132. _ContactInfo = GetValidValue(_ContactInfo, ""ContactInfo"", false, _ContactInfoInitialized);
  2133. _ContactInfoInitialized = true;
  2134. return _ContactInfo;
  2135. }
  2136. set
  2137. {
  2138. OnContactInfoChanging(value);
  2139. ReportPropertyChanging(""ContactInfo"");
  2140. _ContactInfo = SetValidValue(_ContactInfo, value, ""ContactInfo"");
  2141. _ContactInfoInitialized = true;
  2142. ReportPropertyChanged(""ContactInfo"");
  2143. OnContactInfoChanged();
  2144. }
  2145. }
  2146. private ContactDetailsMm _ContactInfo;
  2147. private bool _ContactInfoInitialized;
  2148. partial void OnContactInfoChanging(ContactDetailsMm value);
  2149. partial void OnContactInfoChanged();
  2150. /// <summary>
  2151. /// No Metadata Documentation available.
  2152. /// </summary>
  2153. [EdmComplexPropertyAttribute()]
  2154. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  2155. [XmlElement(IsNullable=true)]
  2156. [SoapElement(IsNullable=true)]
  2157. [DataMemberAttribute()]
  2158. public AuditInfoMm Auditing
  2159. {
  2160. get
  2161. {
  2162. _Auditing = GetValidValue(_Auditing, ""Auditing"", false, _AuditingInitialized);
  2163. _AuditingInitialized = true;
  2164. return _Auditing;
  2165. }
  2166. set
  2167. {
  2168. OnAuditingChanging(value);
  2169. ReportPropertyChanging(""Auditing"");
  2170. _Auditing = SetValidValue(_Auditing, value, ""Auditing"");
  2171. _AuditingInitialized = true;
  2172. ReportPropertyChanged(""Auditing"");
  2173. OnAuditingChanged();
  2174. }
  2175. }
  2176. private AuditInfoMm _Auditing;
  2177. private bool _AuditingInitialized;
  2178. partial void OnAuditingChanging(AuditInfoMm value);
  2179. partial void OnAuditingChanged();
  2180. #endregion
  2181. #region Navigation Properties
  2182. /// <summary>
  2183. /// No Metadata Documentation available.
  2184. /// </summary>
  2185. [XmlIgnoreAttribute()]
  2186. [SoapIgnoreAttribute()]
  2187. [DataMemberAttribute()]
  2188. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Customer_Orders"", ""Order"")]
  2189. public EntityCollection<OrderMm> Orders
  2190. {
  2191. get
  2192. {
  2193. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<OrderMm>(""MonsterNamespace.Customer_Orders"", ""Order"");
  2194. }
  2195. set
  2196. {
  2197. if ((value != null))
  2198. {
  2199. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<OrderMm>(""MonsterNamespace.Customer_Orders"", ""Order"", value);
  2200. }
  2201. }
  2202. }
  2203. /// <summary>
  2204. /// No Metadata Documentation available.
  2205. /// </summary>
  2206. [XmlIgnoreAttribute()]
  2207. [SoapIgnoreAttribute()]
  2208. [DataMemberAttribute()]
  2209. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Customer_Logins"", ""Logins"")]
  2210. public EntityCollection<LoginMm> Logins
  2211. {
  2212. get
  2213. {
  2214. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<LoginMm>(""MonsterNamespace.Customer_Logins"", ""Logins"");
  2215. }
  2216. set
  2217. {
  2218. if ((value != null))
  2219. {
  2220. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<LoginMm>(""MonsterNamespace.Customer_Logins"", ""Logins"", value);
  2221. }
  2222. }
  2223. }
  2224. /// <summary>
  2225. /// No Metadata Documentation available.
  2226. /// </summary>
  2227. [XmlIgnoreAttribute()]
  2228. [SoapIgnoreAttribute()]
  2229. [DataMemberAttribute()]
  2230. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Husband_Wife"", ""Husband"")]
  2231. public CustomerMm Husband
  2232. {
  2233. get
  2234. {
  2235. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Husband"").Value;
  2236. }
  2237. set
  2238. {
  2239. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Husband"").Value = value;
  2240. }
  2241. }
  2242. /// <summary>
  2243. /// No Metadata Documentation available.
  2244. /// </summary>
  2245. [BrowsableAttribute(false)]
  2246. [DataMemberAttribute()]
  2247. public EntityReference<CustomerMm> HusbandReference
  2248. {
  2249. get
  2250. {
  2251. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Husband"");
  2252. }
  2253. set
  2254. {
  2255. if ((value != null))
  2256. {
  2257. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Husband"", value);
  2258. }
  2259. }
  2260. }
  2261. /// <summary>
  2262. /// No Metadata Documentation available.
  2263. /// </summary>
  2264. [XmlIgnoreAttribute()]
  2265. [SoapIgnoreAttribute()]
  2266. [DataMemberAttribute()]
  2267. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Husband_Wife"", ""Wife"")]
  2268. public CustomerMm Wife
  2269. {
  2270. get
  2271. {
  2272. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Wife"").Value;
  2273. }
  2274. set
  2275. {
  2276. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Wife"").Value = value;
  2277. }
  2278. }
  2279. /// <summary>
  2280. /// No Metadata Documentation available.
  2281. /// </summary>
  2282. [BrowsableAttribute(false)]
  2283. [DataMemberAttribute()]
  2284. public EntityReference<CustomerMm> WifeReference
  2285. {
  2286. get
  2287. {
  2288. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Wife"");
  2289. }
  2290. set
  2291. {
  2292. if ((value != null))
  2293. {
  2294. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Wife"", value);
  2295. }
  2296. }
  2297. }
  2298. /// <summary>
  2299. /// No Metadata Documentation available.
  2300. /// </summary>
  2301. [XmlIgnoreAttribute()]
  2302. [SoapIgnoreAttribute()]
  2303. [DataMemberAttribute()]
  2304. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Customer_CustomerInfo"", ""Info"")]
  2305. public CustomerInfoMm Info
  2306. {
  2307. get
  2308. {
  2309. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerInfoMm>(""MonsterNamespace.Customer_CustomerInfo"", ""Info"").Value;
  2310. }
  2311. set
  2312. {
  2313. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerInfoMm>(""MonsterNamespace.Customer_CustomerInfo"", ""Info"").Value = value;
  2314. }
  2315. }
  2316. /// <summary>
  2317. /// No Metadata Documentation available.
  2318. /// </summary>
  2319. [BrowsableAttribute(false)]
  2320. [DataMemberAttribute()]
  2321. public EntityReference<CustomerInfoMm> InfoReference
  2322. {
  2323. get
  2324. {
  2325. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerInfoMm>(""MonsterNamespace.Customer_CustomerInfo"", ""Info"");
  2326. }
  2327. set
  2328. {
  2329. if ((value != null))
  2330. {
  2331. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CustomerInfoMm>(""MonsterNamespace.Customer_CustomerInfo"", ""Info"", value);
  2332. }
  2333. }
  2334. }
  2335. #endregion
  2336. }
  2337. /// <summary>
  2338. /// No Metadata Documentation available.
  2339. /// </summary>
  2340. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""DiscontinuedProductMm"")]
  2341. [Serializable()]
  2342. [DataContractAttribute(IsReference=true)]
  2343. public partial class DiscontinuedProductMm : ProductMm
  2344. {
  2345. #region Factory Method
  2346. /// <summary>
  2347. /// Create a new DiscontinuedProductMm object.
  2348. /// </summary>
  2349. /// <param name=""productId"">Initial value of the ProductId property.</param>
  2350. /// <param name=""dimensions"">Initial value of the Dimensions property.</param>
  2351. /// <param name=""baseConcurrency"">Initial value of the BaseConcurrency property.</param>
  2352. /// <param name=""complexConcurrency"">Initial value of the ComplexConcurrency property.</param>
  2353. /// <param name=""nestedComplexConcurrency"">Initial value of the NestedComplexConcurrency property.</param>
  2354. /// <param name=""discontinued"">Initial value of the Discontinued property.</param>
  2355. public static DiscontinuedProductMm CreateDiscontinuedProductMm(global::System.Int32 productId, DimensionsMm dimensions, global::System.String baseConcurrency, ConcurrencyInfoMm complexConcurrency, AuditInfoMm nestedComplexConcurrency, global::System.DateTime discontinued)
  2356. {
  2357. DiscontinuedProductMm discontinuedProductMm = new DiscontinuedProductMm();
  2358. discontinuedProductMm.ProductId = productId;
  2359. discontinuedProductMm.Dimensions = StructuralObject.VerifyComplexObjectIsNotNull(dimensions, ""Dimensions"");
  2360. discontinuedProductMm.BaseConcurrency = baseConcurrency;
  2361. discontinuedProductMm.ComplexConcurrency = StructuralObject.VerifyComplexObjectIsNotNull(complexConcurrency, ""ComplexConcurrency"");
  2362. discontinuedProductMm.NestedComplexConcurrency = StructuralObject.VerifyComplexObjectIsNotNull(nestedComplexConcurrency, ""NestedComplexConcurrency"");
  2363. discontinuedProductMm.Discontinued = discontinued;
  2364. return discontinuedProductMm;
  2365. }
  2366. #endregion
  2367. #region Simple Properties
  2368. /// <summary>
  2369. /// No Metadata Documentation available.
  2370. /// </summary>
  2371. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  2372. [DataMemberAttribute()]
  2373. public global::System.DateTime Discontinued
  2374. {
  2375. get
  2376. {
  2377. return _Discontinued;
  2378. }
  2379. set
  2380. {
  2381. OnDiscontinuedChanging(value);
  2382. ReportPropertyChanging(""Discontinued"");
  2383. _Discontinued = StructuralObject.SetValidValue(value, ""Discontinued"");
  2384. ReportPropertyChanged(""Discontinued"");
  2385. OnDiscontinuedChanged();
  2386. }
  2387. }
  2388. private global::System.DateTime _Discontinued;
  2389. partial void OnDiscontinuedChanging(global::System.DateTime value);
  2390. partial void OnDiscontinuedChanged();
  2391. /// <summary>
  2392. /// No Metadata Documentation available.
  2393. /// </summary>
  2394. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  2395. [DataMemberAttribute()]
  2396. public Nullable<global::System.Int32> ReplacementProductId
  2397. {
  2398. get
  2399. {
  2400. return _ReplacementProductId;
  2401. }
  2402. set
  2403. {
  2404. OnReplacementProductIdChanging(value);
  2405. ReportPropertyChanging(""ReplacementProductId"");
  2406. _ReplacementProductId = StructuralObject.SetValidValue(value, ""ReplacementProductId"");
  2407. ReportPropertyChanged(""ReplacementProductId"");
  2408. OnReplacementProductIdChanged();
  2409. }
  2410. }
  2411. private Nullable<global::System.Int32> _ReplacementProductId;
  2412. partial void OnReplacementProductIdChanging(Nullable<global::System.Int32> value);
  2413. partial void OnReplacementProductIdChanged();
  2414. #endregion
  2415. #region Navigation Properties
  2416. /// <summary>
  2417. /// No Metadata Documentation available.
  2418. /// </summary>
  2419. [XmlIgnoreAttribute()]
  2420. [SoapIgnoreAttribute()]
  2421. [DataMemberAttribute()]
  2422. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""DiscontinuedProduct_Replacement"", ""Replacement"")]
  2423. public ProductMm ReplacedBy
  2424. {
  2425. get
  2426. {
  2427. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.DiscontinuedProduct_Replacement"", ""Replacement"").Value;
  2428. }
  2429. set
  2430. {
  2431. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.DiscontinuedProduct_Replacement"", ""Replacement"").Value = value;
  2432. }
  2433. }
  2434. /// <summary>
  2435. /// No Metadata Documentation available.
  2436. /// </summary>
  2437. [BrowsableAttribute(false)]
  2438. [DataMemberAttribute()]
  2439. public EntityReference<ProductMm> ReplacedByReference
  2440. {
  2441. get
  2442. {
  2443. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.DiscontinuedProduct_Replacement"", ""Replacement"");
  2444. }
  2445. set
  2446. {
  2447. if ((value != null))
  2448. {
  2449. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductMm>(""MonsterNamespace.DiscontinuedProduct_Replacement"", ""Replacement"", value);
  2450. }
  2451. }
  2452. }
  2453. #endregion
  2454. }
  2455. /// <summary>
  2456. /// No Metadata Documentation available.
  2457. /// </summary>
  2458. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""DriverMm"")]
  2459. [Serializable()]
  2460. [DataContractAttribute(IsReference=true)]
  2461. public partial class DriverMm : EntityObject
  2462. {
  2463. #region Factory Method
  2464. /// <summary>
  2465. /// Create a new DriverMm object.
  2466. /// </summary>
  2467. /// <param name=""name"">Initial value of the Name property.</param>
  2468. /// <param name=""birthDate"">Initial value of the BirthDate property.</param>
  2469. public static DriverMm CreateDriverMm(global::System.String name, global::System.DateTime birthDate)
  2470. {
  2471. DriverMm driverMm = new DriverMm();
  2472. driverMm.Name = name;
  2473. driverMm.BirthDate = birthDate;
  2474. return driverMm;
  2475. }
  2476. #endregion
  2477. #region Simple Properties
  2478. /// <summary>
  2479. /// No Metadata Documentation available.
  2480. /// </summary>
  2481. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  2482. [DataMemberAttribute()]
  2483. public global::System.String Name
  2484. {
  2485. get
  2486. {
  2487. return _Name;
  2488. }
  2489. set
  2490. {
  2491. if (_Name != value)
  2492. {
  2493. OnNameChanging(value);
  2494. ReportPropertyChanging(""Name"");
  2495. _Name = StructuralObject.SetValidValue(value, false, ""Name"");
  2496. ReportPropertyChanged(""Name"");
  2497. OnNameChanged();
  2498. }
  2499. }
  2500. }
  2501. private global::System.String _Name;
  2502. partial void OnNameChanging(global::System.String value);
  2503. partial void OnNameChanged();
  2504. /// <summary>
  2505. /// No Metadata Documentation available.
  2506. /// </summary>
  2507. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  2508. [DataMemberAttribute()]
  2509. public global::System.DateTime BirthDate
  2510. {
  2511. get
  2512. {
  2513. return _BirthDate;
  2514. }
  2515. set
  2516. {
  2517. OnBirthDateChanging(value);
  2518. ReportPropertyChanging(""BirthDate"");
  2519. _BirthDate = StructuralObject.SetValidValue(value, ""BirthDate"");
  2520. ReportPropertyChanged(""BirthDate"");
  2521. OnBirthDateChanged();
  2522. }
  2523. }
  2524. private global::System.DateTime _BirthDate;
  2525. partial void OnBirthDateChanging(global::System.DateTime value);
  2526. partial void OnBirthDateChanged();
  2527. #endregion
  2528. #region Navigation Properties
  2529. /// <summary>
  2530. /// No Metadata Documentation available.
  2531. /// </summary>
  2532. [XmlIgnoreAttribute()]
  2533. [SoapIgnoreAttribute()]
  2534. [DataMemberAttribute()]
  2535. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Driver_License"", ""License"")]
  2536. public LicenseMm License
  2537. {
  2538. get
  2539. {
  2540. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LicenseMm>(""MonsterNamespace.Driver_License"", ""License"").Value;
  2541. }
  2542. set
  2543. {
  2544. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LicenseMm>(""MonsterNamespace.Driver_License"", ""License"").Value = value;
  2545. }
  2546. }
  2547. /// <summary>
  2548. /// No Metadata Documentation available.
  2549. /// </summary>
  2550. [BrowsableAttribute(false)]
  2551. [DataMemberAttribute()]
  2552. public EntityReference<LicenseMm> LicenseReference
  2553. {
  2554. get
  2555. {
  2556. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LicenseMm>(""MonsterNamespace.Driver_License"", ""License"");
  2557. }
  2558. set
  2559. {
  2560. if ((value != null))
  2561. {
  2562. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LicenseMm>(""MonsterNamespace.Driver_License"", ""License"", value);
  2563. }
  2564. }
  2565. }
  2566. #endregion
  2567. }
  2568. /// <summary>
  2569. /// No Metadata Documentation available.
  2570. /// </summary>
  2571. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""IncorrectScanMm"")]
  2572. [Serializable()]
  2573. [DataContractAttribute(IsReference=true)]
  2574. public partial class IncorrectScanMm : EntityObject
  2575. {
  2576. #region Factory Method
  2577. /// <summary>
  2578. /// Create a new IncorrectScanMm object.
  2579. /// </summary>
  2580. /// <param name=""incorrectScanId"">Initial value of the IncorrectScanId property.</param>
  2581. /// <param name=""expectedCode"">Initial value of the ExpectedCode property.</param>
  2582. /// <param name=""scanDate"">Initial value of the ScanDate property.</param>
  2583. /// <param name=""details"">Initial value of the Details property.</param>
  2584. public static IncorrectScanMm CreateIncorrectScanMm(global::System.Int32 incorrectScanId, global::System.Byte[] expectedCode, global::System.DateTime scanDate, global::System.String details)
  2585. {
  2586. IncorrectScanMm incorrectScanMm = new IncorrectScanMm();
  2587. incorrectScanMm.IncorrectScanId = incorrectScanId;
  2588. incorrectScanMm.ExpectedCode = expectedCode;
  2589. incorrectScanMm.ScanDate = scanDate;
  2590. incorrectScanMm.Details = details;
  2591. return incorrectScanMm;
  2592. }
  2593. #endregion
  2594. #region Simple Properties
  2595. /// <summary>
  2596. /// No Metadata Documentation available.
  2597. /// </summary>
  2598. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  2599. [DataMemberAttribute()]
  2600. public global::System.Int32 IncorrectScanId
  2601. {
  2602. get
  2603. {
  2604. return _IncorrectScanId;
  2605. }
  2606. set
  2607. {
  2608. if (_IncorrectScanId != value)
  2609. {
  2610. OnIncorrectScanIdChanging(value);
  2611. ReportPropertyChanging(""IncorrectScanId"");
  2612. _IncorrectScanId = StructuralObject.SetValidValue(value, ""IncorrectScanId"");
  2613. ReportPropertyChanged(""IncorrectScanId"");
  2614. OnIncorrectScanIdChanged();
  2615. }
  2616. }
  2617. }
  2618. private global::System.Int32 _IncorrectScanId;
  2619. partial void OnIncorrectScanIdChanging(global::System.Int32 value);
  2620. partial void OnIncorrectScanIdChanged();
  2621. /// <summary>
  2622. /// No Metadata Documentation available.
  2623. /// </summary>
  2624. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  2625. [DataMemberAttribute()]
  2626. public global::System.Byte[] ExpectedCode
  2627. {
  2628. get
  2629. {
  2630. return StructuralObject.GetValidValue(_ExpectedCode);
  2631. }
  2632. set
  2633. {
  2634. OnExpectedCodeChanging(value);
  2635. ReportPropertyChanging(""ExpectedCode"");
  2636. _ExpectedCode = StructuralObject.SetValidValue(value, false, ""ExpectedCode"");
  2637. ReportPropertyChanged(""ExpectedCode"");
  2638. OnExpectedCodeChanged();
  2639. }
  2640. }
  2641. private global::System.Byte[] _ExpectedCode;
  2642. partial void OnExpectedCodeChanging(global::System.Byte[] value);
  2643. partial void OnExpectedCodeChanged();
  2644. /// <summary>
  2645. /// No Metadata Documentation available.
  2646. /// </summary>
  2647. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  2648. [DataMemberAttribute()]
  2649. public global::System.Byte[] ActualCode
  2650. {
  2651. get
  2652. {
  2653. return StructuralObject.GetValidValue(_ActualCode);
  2654. }
  2655. set
  2656. {
  2657. OnActualCodeChanging(value);
  2658. ReportPropertyChanging(""ActualCode"");
  2659. _ActualCode = StructuralObject.SetValidValue(value, true, ""ActualCode"");
  2660. ReportPropertyChanged(""ActualCode"");
  2661. OnActualCodeChanged();
  2662. }
  2663. }
  2664. private global::System.Byte[] _ActualCode;
  2665. partial void OnActualCodeChanging(global::System.Byte[] value);
  2666. partial void OnActualCodeChanged();
  2667. /// <summary>
  2668. /// No Metadata Documentation available.
  2669. /// </summary>
  2670. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  2671. [DataMemberAttribute()]
  2672. public global::System.DateTime ScanDate
  2673. {
  2674. get
  2675. {
  2676. return _ScanDate;
  2677. }
  2678. set
  2679. {
  2680. OnScanDateChanging(value);
  2681. ReportPropertyChanging(""ScanDate"");
  2682. _ScanDate = StructuralObject.SetValidValue(value, ""ScanDate"");
  2683. ReportPropertyChanged(""ScanDate"");
  2684. OnScanDateChanged();
  2685. }
  2686. }
  2687. private global::System.DateTime _ScanDate;
  2688. partial void OnScanDateChanging(global::System.DateTime value);
  2689. partial void OnScanDateChanged();
  2690. /// <summary>
  2691. /// No Metadata Documentation available.
  2692. /// </summary>
  2693. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  2694. [DataMemberAttribute()]
  2695. public global::System.String Details
  2696. {
  2697. get
  2698. {
  2699. return _Details;
  2700. }
  2701. set
  2702. {
  2703. OnDetailsChanging(value);
  2704. ReportPropertyChanging(""Details"");
  2705. _Details = StructuralObject.SetValidValue(value, false, ""Details"");
  2706. ReportPropertyChanged(""Details"");
  2707. OnDetailsChanged();
  2708. }
  2709. }
  2710. private global::System.String _Details;
  2711. partial void OnDetailsChanging(global::System.String value);
  2712. partial void OnDetailsChanged();
  2713. #endregion
  2714. #region Navigation Properties
  2715. /// <summary>
  2716. /// No Metadata Documentation available.
  2717. /// </summary>
  2718. [XmlIgnoreAttribute()]
  2719. [SoapIgnoreAttribute()]
  2720. [DataMemberAttribute()]
  2721. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Barcode_IncorrectScanExpected"", ""Barcode"")]
  2722. public BarcodeMm ExpectedBarcode
  2723. {
  2724. get
  2725. {
  2726. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanExpected"", ""Barcode"").Value;
  2727. }
  2728. set
  2729. {
  2730. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanExpected"", ""Barcode"").Value = value;
  2731. }
  2732. }
  2733. /// <summary>
  2734. /// No Metadata Documentation available.
  2735. /// </summary>
  2736. [BrowsableAttribute(false)]
  2737. [DataMemberAttribute()]
  2738. public EntityReference<BarcodeMm> ExpectedBarcodeReference
  2739. {
  2740. get
  2741. {
  2742. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanExpected"", ""Barcode"");
  2743. }
  2744. set
  2745. {
  2746. if ((value != null))
  2747. {
  2748. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanExpected"", ""Barcode"", value);
  2749. }
  2750. }
  2751. }
  2752. /// <summary>
  2753. /// No Metadata Documentation available.
  2754. /// </summary>
  2755. [XmlIgnoreAttribute()]
  2756. [SoapIgnoreAttribute()]
  2757. [DataMemberAttribute()]
  2758. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Barcode_IncorrectScanActual"", ""Barcode"")]
  2759. public BarcodeMm ActualBarcode
  2760. {
  2761. get
  2762. {
  2763. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanActual"", ""Barcode"").Value;
  2764. }
  2765. set
  2766. {
  2767. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanActual"", ""Barcode"").Value = value;
  2768. }
  2769. }
  2770. /// <summary>
  2771. /// No Metadata Documentation available.
  2772. /// </summary>
  2773. [BrowsableAttribute(false)]
  2774. [DataMemberAttribute()]
  2775. public EntityReference<BarcodeMm> ActualBarcodeReference
  2776. {
  2777. get
  2778. {
  2779. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanActual"", ""Barcode"");
  2780. }
  2781. set
  2782. {
  2783. if ((value != null))
  2784. {
  2785. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanActual"", ""Barcode"", value);
  2786. }
  2787. }
  2788. }
  2789. #endregion
  2790. }
  2791. /// <summary>
  2792. /// No Metadata Documentation available.
  2793. /// </summary>
  2794. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""LastLoginMm"")]
  2795. [Serializable()]
  2796. [DataContractAttribute(IsReference=true)]
  2797. public partial class LastLoginMm : EntityObject
  2798. {
  2799. #region Factory Method
  2800. /// <summary>
  2801. /// Create a new LastLoginMm object.
  2802. /// </summary>
  2803. /// <param name=""username"">Initial value of the Username property.</param>
  2804. /// <param name=""loggedIn"">Initial value of the LoggedIn property.</param>
  2805. public static LastLoginMm CreateLastLoginMm(global::System.String username, global::System.DateTime loggedIn)
  2806. {
  2807. LastLoginMm lastLoginMm = new LastLoginMm();
  2808. lastLoginMm.Username = username;
  2809. lastLoginMm.LoggedIn = loggedIn;
  2810. return lastLoginMm;
  2811. }
  2812. #endregion
  2813. #region Simple Properties
  2814. /// <summary>
  2815. /// No Metadata Documentation available.
  2816. /// </summary>
  2817. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  2818. [DataMemberAttribute()]
  2819. public global::System.String Username
  2820. {
  2821. get
  2822. {
  2823. return _Username;
  2824. }
  2825. set
  2826. {
  2827. if (_Username != value)
  2828. {
  2829. OnUsernameChanging(value);
  2830. ReportPropertyChanging(""Username"");
  2831. _Username = StructuralObject.SetValidValue(value, false, ""Username"");
  2832. ReportPropertyChanged(""Username"");
  2833. OnUsernameChanged();
  2834. }
  2835. }
  2836. }
  2837. private global::System.String _Username;
  2838. partial void OnUsernameChanging(global::System.String value);
  2839. partial void OnUsernameChanged();
  2840. /// <summary>
  2841. /// No Metadata Documentation available.
  2842. /// </summary>
  2843. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  2844. [DataMemberAttribute()]
  2845. public global::System.DateTime LoggedIn
  2846. {
  2847. get
  2848. {
  2849. return _LoggedIn;
  2850. }
  2851. set
  2852. {
  2853. OnLoggedInChanging(value);
  2854. ReportPropertyChanging(""LoggedIn"");
  2855. _LoggedIn = StructuralObject.SetValidValue(value, ""LoggedIn"");
  2856. ReportPropertyChanged(""LoggedIn"");
  2857. OnLoggedInChanged();
  2858. }
  2859. }
  2860. private global::System.DateTime _LoggedIn;
  2861. partial void OnLoggedInChanging(global::System.DateTime value);
  2862. partial void OnLoggedInChanged();
  2863. /// <summary>
  2864. /// No Metadata Documentation available.
  2865. /// </summary>
  2866. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  2867. [DataMemberAttribute()]
  2868. public Nullable<global::System.DateTime> LoggedOut
  2869. {
  2870. get
  2871. {
  2872. return _LoggedOut;
  2873. }
  2874. set
  2875. {
  2876. OnLoggedOutChanging(value);
  2877. ReportPropertyChanging(""LoggedOut"");
  2878. _LoggedOut = StructuralObject.SetValidValue(value, ""LoggedOut"");
  2879. ReportPropertyChanged(""LoggedOut"");
  2880. OnLoggedOutChanged();
  2881. }
  2882. }
  2883. private Nullable<global::System.DateTime> _LoggedOut;
  2884. partial void OnLoggedOutChanging(Nullable<global::System.DateTime> value);
  2885. partial void OnLoggedOutChanged();
  2886. #endregion
  2887. #region Navigation Properties
  2888. /// <summary>
  2889. /// No Metadata Documentation available.
  2890. /// </summary>
  2891. [XmlIgnoreAttribute()]
  2892. [SoapIgnoreAttribute()]
  2893. [DataMemberAttribute()]
  2894. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_LastLogin"", ""Login"")]
  2895. public LoginMm Login
  2896. {
  2897. get
  2898. {
  2899. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_LastLogin"", ""Login"").Value;
  2900. }
  2901. set
  2902. {
  2903. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_LastLogin"", ""Login"").Value = value;
  2904. }
  2905. }
  2906. /// <summary>
  2907. /// No Metadata Documentation available.
  2908. /// </summary>
  2909. [BrowsableAttribute(false)]
  2910. [DataMemberAttribute()]
  2911. public EntityReference<LoginMm> LoginReference
  2912. {
  2913. get
  2914. {
  2915. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_LastLogin"", ""Login"");
  2916. }
  2917. set
  2918. {
  2919. if ((value != null))
  2920. {
  2921. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_LastLogin"", ""Login"", value);
  2922. }
  2923. }
  2924. }
  2925. #endregion
  2926. }
  2927. /// <summary>
  2928. /// No Metadata Documentation available.
  2929. /// </summary>
  2930. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""LicenseMm"")]
  2931. [Serializable()]
  2932. [DataContractAttribute(IsReference=true)]
  2933. public partial class LicenseMm : EntityObject
  2934. {
  2935. #region Factory Method
  2936. /// <summary>
  2937. /// Create a new LicenseMm object.
  2938. /// </summary>
  2939. /// <param name=""name"">Initial value of the Name property.</param>
  2940. /// <param name=""licenseNumber"">Initial value of the LicenseNumber property.</param>
  2941. /// <param name=""restrictions"">Initial value of the Restrictions property.</param>
  2942. /// <param name=""expirationDate"">Initial value of the ExpirationDate property.</param>
  2943. public static LicenseMm CreateLicenseMm(global::System.String name, global::System.String licenseNumber, global::System.String restrictions, global::System.DateTime expirationDate)
  2944. {
  2945. LicenseMm licenseMm = new LicenseMm();
  2946. licenseMm.Name = name;
  2947. licenseMm.LicenseNumber = licenseNumber;
  2948. licenseMm.Restrictions = restrictions;
  2949. licenseMm.ExpirationDate = expirationDate;
  2950. return licenseMm;
  2951. }
  2952. #endregion
  2953. #region Simple Properties
  2954. /// <summary>
  2955. /// No Metadata Documentation available.
  2956. /// </summary>
  2957. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  2958. [DataMemberAttribute()]
  2959. public global::System.String Name
  2960. {
  2961. get
  2962. {
  2963. return _Name;
  2964. }
  2965. set
  2966. {
  2967. if (_Name != value)
  2968. {
  2969. OnNameChanging(value);
  2970. ReportPropertyChanging(""Name"");
  2971. _Name = StructuralObject.SetValidValue(value, false, ""Name"");
  2972. ReportPropertyChanged(""Name"");
  2973. OnNameChanged();
  2974. }
  2975. }
  2976. }
  2977. private global::System.String _Name;
  2978. partial void OnNameChanging(global::System.String value);
  2979. partial void OnNameChanged();
  2980. /// <summary>
  2981. /// No Metadata Documentation available.
  2982. /// </summary>
  2983. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  2984. [DataMemberAttribute()]
  2985. public global::System.String LicenseNumber
  2986. {
  2987. get
  2988. {
  2989. return _LicenseNumber;
  2990. }
  2991. set
  2992. {
  2993. OnLicenseNumberChanging(value);
  2994. ReportPropertyChanging(""LicenseNumber"");
  2995. _LicenseNumber = StructuralObject.SetValidValue(value, false, ""LicenseNumber"");
  2996. ReportPropertyChanged(""LicenseNumber"");
  2997. OnLicenseNumberChanged();
  2998. }
  2999. }
  3000. private global::System.String _LicenseNumber;
  3001. partial void OnLicenseNumberChanging(global::System.String value);
  3002. partial void OnLicenseNumberChanged();
  3003. /// <summary>
  3004. /// No Metadata Documentation available.
  3005. /// </summary>
  3006. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  3007. [DataMemberAttribute()]
  3008. public global::System.String LicenseClass
  3009. {
  3010. get
  3011. {
  3012. return _LicenseClass;
  3013. }
  3014. set
  3015. {
  3016. OnLicenseClassChanging(value);
  3017. ReportPropertyChanging(""LicenseClass"");
  3018. _LicenseClass = StructuralObject.SetValidValue(value, false, ""LicenseClass"");
  3019. ReportPropertyChanged(""LicenseClass"");
  3020. OnLicenseClassChanged();
  3021. }
  3022. }
  3023. private global::System.String _LicenseClass = ""C"";
  3024. partial void OnLicenseClassChanging(global::System.String value);
  3025. partial void OnLicenseClassChanged();
  3026. /// <summary>
  3027. /// No Metadata Documentation available.
  3028. /// </summary>
  3029. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  3030. [DataMemberAttribute()]
  3031. public global::System.String Restrictions
  3032. {
  3033. get
  3034. {
  3035. return _Restrictions;
  3036. }
  3037. set
  3038. {
  3039. OnRestrictionsChanging(value);
  3040. ReportPropertyChanging(""Restrictions"");
  3041. _Restrictions = StructuralObject.SetValidValue(value, false, ""Restrictions"");
  3042. ReportPropertyChanged(""Restrictions"");
  3043. OnRestrictionsChanged();
  3044. }
  3045. }
  3046. private global::System.String _Restrictions;
  3047. partial void OnRestrictionsChanging(global::System.String value);
  3048. partial void OnRestrictionsChanged();
  3049. /// <summary>
  3050. /// No Metadata Documentation available.
  3051. /// </summary>
  3052. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  3053. [DataMemberAttribute()]
  3054. public global::System.DateTime ExpirationDate
  3055. {
  3056. get
  3057. {
  3058. return _ExpirationDate;
  3059. }
  3060. set
  3061. {
  3062. OnExpirationDateChanging(value);
  3063. ReportPropertyChanging(""ExpirationDate"");
  3064. _ExpirationDate = StructuralObject.SetValidValue(value, ""ExpirationDate"");
  3065. ReportPropertyChanged(""ExpirationDate"");
  3066. OnExpirationDateChanged();
  3067. }
  3068. }
  3069. private global::System.DateTime _ExpirationDate;
  3070. partial void OnExpirationDateChanging(global::System.DateTime value);
  3071. partial void OnExpirationDateChanged();
  3072. /// <summary>
  3073. /// No Metadata Documentation available.
  3074. /// </summary>
  3075. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  3076. [DataMemberAttribute()]
  3077. public Nullable<LicenseStateMm> State
  3078. {
  3079. get
  3080. {
  3081. return _State;
  3082. }
  3083. set
  3084. {
  3085. OnStateChanging(value);
  3086. ReportPropertyChanging(""State"");
  3087. _State = (Nullable<LicenseStateMm>)StructuralObject.SetValidValue((Nullable<int>)value, ""State"");
  3088. ReportPropertyChanged(""State"");
  3089. OnStateChanged();
  3090. }
  3091. }
  3092. private Nullable<LicenseStateMm> _State;
  3093. partial void OnStateChanging(Nullable<LicenseStateMm> value);
  3094. partial void OnStateChanged();
  3095. #endregion
  3096. #region Navigation Properties
  3097. /// <summary>
  3098. /// No Metadata Documentation available.
  3099. /// </summary>
  3100. [XmlIgnoreAttribute()]
  3101. [SoapIgnoreAttribute()]
  3102. [DataMemberAttribute()]
  3103. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Driver_License"", ""Driver"")]
  3104. public DriverMm Driver
  3105. {
  3106. get
  3107. {
  3108. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<DriverMm>(""MonsterNamespace.Driver_License"", ""Driver"").Value;
  3109. }
  3110. set
  3111. {
  3112. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<DriverMm>(""MonsterNamespace.Driver_License"", ""Driver"").Value = value;
  3113. }
  3114. }
  3115. /// <summary>
  3116. /// No Metadata Documentation available.
  3117. /// </summary>
  3118. [BrowsableAttribute(false)]
  3119. [DataMemberAttribute()]
  3120. public EntityReference<DriverMm> DriverReference
  3121. {
  3122. get
  3123. {
  3124. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<DriverMm>(""MonsterNamespace.Driver_License"", ""Driver"");
  3125. }
  3126. set
  3127. {
  3128. if ((value != null))
  3129. {
  3130. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<DriverMm>(""MonsterNamespace.Driver_License"", ""Driver"", value);
  3131. }
  3132. }
  3133. }
  3134. #endregion
  3135. }
  3136. /// <summary>
  3137. /// No Metadata Documentation available.
  3138. /// </summary>
  3139. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""LoginMm"")]
  3140. [Serializable()]
  3141. [DataContractAttribute(IsReference=true)]
  3142. public partial class LoginMm : EntityObject
  3143. {
  3144. #region Factory Method
  3145. /// <summary>
  3146. /// Create a new LoginMm object.
  3147. /// </summary>
  3148. /// <param name=""username"">Initial value of the Username property.</param>
  3149. /// <param name=""customerId"">Initial value of the CustomerId property.</param>
  3150. public static LoginMm CreateLoginMm(global::System.String username, global::System.Int32 customerId)
  3151. {
  3152. LoginMm loginMm = new LoginMm();
  3153. loginMm.Username = username;
  3154. loginMm.CustomerId = customerId;
  3155. return loginMm;
  3156. }
  3157. #endregion
  3158. #region Simple Properties
  3159. /// <summary>
  3160. /// No Metadata Documentation available.
  3161. /// </summary>
  3162. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  3163. [DataMemberAttribute()]
  3164. public global::System.String Username
  3165. {
  3166. get
  3167. {
  3168. return _Username;
  3169. }
  3170. set
  3171. {
  3172. if (_Username != value)
  3173. {
  3174. OnUsernameChanging(value);
  3175. ReportPropertyChanging(""Username"");
  3176. _Username = StructuralObject.SetValidValue(value, false, ""Username"");
  3177. ReportPropertyChanged(""Username"");
  3178. OnUsernameChanged();
  3179. }
  3180. }
  3181. }
  3182. private global::System.String _Username;
  3183. partial void OnUsernameChanging(global::System.String value);
  3184. partial void OnUsernameChanged();
  3185. /// <summary>
  3186. /// No Metadata Documentation available.
  3187. /// </summary>
  3188. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  3189. [DataMemberAttribute()]
  3190. public global::System.Int32 CustomerId
  3191. {
  3192. get
  3193. {
  3194. return _CustomerId;
  3195. }
  3196. set
  3197. {
  3198. OnCustomerIdChanging(value);
  3199. ReportPropertyChanging(""CustomerId"");
  3200. _CustomerId = StructuralObject.SetValidValue(value, ""CustomerId"");
  3201. ReportPropertyChanged(""CustomerId"");
  3202. OnCustomerIdChanged();
  3203. }
  3204. }
  3205. private global::System.Int32 _CustomerId;
  3206. partial void OnCustomerIdChanging(global::System.Int32 value);
  3207. partial void OnCustomerIdChanged();
  3208. #endregion
  3209. #region Navigation Properties
  3210. /// <summary>
  3211. /// No Metadata Documentation available.
  3212. /// </summary>
  3213. [XmlIgnoreAttribute()]
  3214. [SoapIgnoreAttribute()]
  3215. [DataMemberAttribute()]
  3216. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Customer_Logins"", ""Customer"")]
  3217. public CustomerMm Customer
  3218. {
  3219. get
  3220. {
  3221. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Logins"", ""Customer"").Value;
  3222. }
  3223. set
  3224. {
  3225. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Logins"", ""Customer"").Value = value;
  3226. }
  3227. }
  3228. /// <summary>
  3229. /// No Metadata Documentation available.
  3230. /// </summary>
  3231. [BrowsableAttribute(false)]
  3232. [DataMemberAttribute()]
  3233. public EntityReference<CustomerMm> CustomerReference
  3234. {
  3235. get
  3236. {
  3237. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Logins"", ""Customer"");
  3238. }
  3239. set
  3240. {
  3241. if ((value != null))
  3242. {
  3243. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Logins"", ""Customer"", value);
  3244. }
  3245. }
  3246. }
  3247. /// <summary>
  3248. /// No Metadata Documentation available.
  3249. /// </summary>
  3250. [XmlIgnoreAttribute()]
  3251. [SoapIgnoreAttribute()]
  3252. [DataMemberAttribute()]
  3253. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_LastLogin"", ""LastLogin"")]
  3254. public LastLoginMm LastLogin
  3255. {
  3256. get
  3257. {
  3258. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LastLoginMm>(""MonsterNamespace.Login_LastLogin"", ""LastLogin"").Value;
  3259. }
  3260. set
  3261. {
  3262. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LastLoginMm>(""MonsterNamespace.Login_LastLogin"", ""LastLogin"").Value = value;
  3263. }
  3264. }
  3265. /// <summary>
  3266. /// No Metadata Documentation available.
  3267. /// </summary>
  3268. [BrowsableAttribute(false)]
  3269. [DataMemberAttribute()]
  3270. public EntityReference<LastLoginMm> LastLoginReference
  3271. {
  3272. get
  3273. {
  3274. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LastLoginMm>(""MonsterNamespace.Login_LastLogin"", ""LastLogin"");
  3275. }
  3276. set
  3277. {
  3278. if ((value != null))
  3279. {
  3280. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LastLoginMm>(""MonsterNamespace.Login_LastLogin"", ""LastLogin"", value);
  3281. }
  3282. }
  3283. }
  3284. /// <summary>
  3285. /// No Metadata Documentation available.
  3286. /// </summary>
  3287. [XmlIgnoreAttribute()]
  3288. [SoapIgnoreAttribute()]
  3289. [DataMemberAttribute()]
  3290. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_SentMessages"", ""Message"")]
  3291. public EntityCollection<MessageMm> SentMessages
  3292. {
  3293. get
  3294. {
  3295. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<MessageMm>(""MonsterNamespace.Login_SentMessages"", ""Message"");
  3296. }
  3297. set
  3298. {
  3299. if ((value != null))
  3300. {
  3301. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<MessageMm>(""MonsterNamespace.Login_SentMessages"", ""Message"", value);
  3302. }
  3303. }
  3304. }
  3305. /// <summary>
  3306. /// No Metadata Documentation available.
  3307. /// </summary>
  3308. [XmlIgnoreAttribute()]
  3309. [SoapIgnoreAttribute()]
  3310. [DataMemberAttribute()]
  3311. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_ReceivedMessages"", ""Message"")]
  3312. public EntityCollection<MessageMm> ReceivedMessages
  3313. {
  3314. get
  3315. {
  3316. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<MessageMm>(""MonsterNamespace.Login_ReceivedMessages"", ""Message"");
  3317. }
  3318. set
  3319. {
  3320. if ((value != null))
  3321. {
  3322. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<MessageMm>(""MonsterNamespace.Login_ReceivedMessages"", ""Message"", value);
  3323. }
  3324. }
  3325. }
  3326. /// <summary>
  3327. /// No Metadata Documentation available.
  3328. /// </summary>
  3329. [XmlIgnoreAttribute()]
  3330. [SoapIgnoreAttribute()]
  3331. [DataMemberAttribute()]
  3332. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_Orders"", ""Orders"")]
  3333. public EntityCollection<OrderMm> Orders
  3334. {
  3335. get
  3336. {
  3337. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<OrderMm>(""MonsterNamespace.Login_Orders"", ""Orders"");
  3338. }
  3339. set
  3340. {
  3341. if ((value != null))
  3342. {
  3343. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<OrderMm>(""MonsterNamespace.Login_Orders"", ""Orders"", value);
  3344. }
  3345. }
  3346. }
  3347. #endregion
  3348. }
  3349. /// <summary>
  3350. /// No Metadata Documentation available.
  3351. /// </summary>
  3352. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""MessageMm"")]
  3353. [Serializable()]
  3354. [DataContractAttribute(IsReference=true)]
  3355. public partial class MessageMm : EntityObject
  3356. {
  3357. #region Factory Method
  3358. /// <summary>
  3359. /// Create a new MessageMm object.
  3360. /// </summary>
  3361. /// <param name=""messageId"">Initial value of the MessageId property.</param>
  3362. /// <param name=""fromUsername"">Initial value of the FromUsername property.</param>
  3363. /// <param name=""toUsername"">Initial value of the ToUsername property.</param>
  3364. /// <param name=""sent"">Initial value of the Sent property.</param>
  3365. /// <param name=""subject"">Initial value of the Subject property.</param>
  3366. /// <param name=""isRead"">Initial value of the IsRead property.</param>
  3367. public static MessageMm CreateMessageMm(global::System.Int32 messageId, global::System.String fromUsername, global::System.String toUsername, global::System.DateTime sent, global::System.String subject, global::System.Boolean isRead)
  3368. {
  3369. MessageMm messageMm = new MessageMm();
  3370. messageMm.MessageId = messageId;
  3371. messageMm.FromUsername = fromUsername;
  3372. messageMm.ToUsername = toUsername;
  3373. messageMm.Sent = sent;
  3374. messageMm.Subject = subject;
  3375. messageMm.IsRead = isRead;
  3376. return messageMm;
  3377. }
  3378. #endregion
  3379. #region Simple Properties
  3380. /// <summary>
  3381. /// No Metadata Documentation available.
  3382. /// </summary>
  3383. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  3384. [DataMemberAttribute()]
  3385. public global::System.Int32 MessageId
  3386. {
  3387. get
  3388. {
  3389. return _MessageId;
  3390. }
  3391. set
  3392. {
  3393. if (_MessageId != value)
  3394. {
  3395. OnMessageIdChanging(value);
  3396. ReportPropertyChanging(""MessageId"");
  3397. _MessageId = StructuralObject.SetValidValue(value, ""MessageId"");
  3398. ReportPropertyChanged(""MessageId"");
  3399. OnMessageIdChanged();
  3400. }
  3401. }
  3402. }
  3403. private global::System.Int32 _MessageId;
  3404. partial void OnMessageIdChanging(global::System.Int32 value);
  3405. partial void OnMessageIdChanged();
  3406. /// <summary>
  3407. /// No Metadata Documentation available.
  3408. /// </summary>
  3409. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  3410. [DataMemberAttribute()]
  3411. public global::System.String FromUsername
  3412. {
  3413. get
  3414. {
  3415. return _FromUsername;
  3416. }
  3417. set
  3418. {
  3419. if (_FromUsername != value)
  3420. {
  3421. OnFromUsernameChanging(value);
  3422. ReportPropertyChanging(""FromUsername"");
  3423. _FromUsername = StructuralObject.SetValidValue(value, false, ""FromUsername"");
  3424. ReportPropertyChanged(""FromUsername"");
  3425. OnFromUsernameChanged();
  3426. }
  3427. }
  3428. }
  3429. private global::System.String _FromUsername;
  3430. partial void OnFromUsernameChanging(global::System.String value);
  3431. partial void OnFromUsernameChanged();
  3432. /// <summary>
  3433. /// No Metadata Documentation available.
  3434. /// </summary>
  3435. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  3436. [DataMemberAttribute()]
  3437. public global::System.String ToUsername
  3438. {
  3439. get
  3440. {
  3441. return _ToUsername;
  3442. }
  3443. set
  3444. {
  3445. OnToUsernameChanging(value);
  3446. ReportPropertyChanging(""ToUsername"");
  3447. _ToUsername = StructuralObject.SetValidValue(value, false, ""ToUsername"");
  3448. ReportPropertyChanged(""ToUsername"");
  3449. OnToUsernameChanged();
  3450. }
  3451. }
  3452. private global::System.String _ToUsername;
  3453. partial void OnToUsernameChanging(global::System.String value);
  3454. partial void OnToUsernameChanged();
  3455. /// <summary>
  3456. /// No Metadata Documentation available.
  3457. /// </summary>
  3458. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  3459. [DataMemberAttribute()]
  3460. public global::System.DateTime Sent
  3461. {
  3462. get
  3463. {
  3464. return _Sent;
  3465. }
  3466. set
  3467. {
  3468. OnSentChanging(value);
  3469. ReportPropertyChanging(""Sent"");
  3470. _Sent = StructuralObject.SetValidValue(value, ""Sent"");
  3471. ReportPropertyChanged(""Sent"");
  3472. OnSentChanged();
  3473. }
  3474. }
  3475. private global::System.DateTime _Sent;
  3476. partial void OnSentChanging(global::System.DateTime value);
  3477. partial void OnSentChanged();
  3478. /// <summary>
  3479. /// No Metadata Documentation available.
  3480. /// </summary>
  3481. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  3482. [DataMemberAttribute()]
  3483. public global::System.String Subject
  3484. {
  3485. get
  3486. {
  3487. return _Subject;
  3488. }
  3489. set
  3490. {
  3491. OnSubjectChanging(value);
  3492. ReportPropertyChanging(""Subject"");
  3493. _Subject = StructuralObject.SetValidValue(value, false, ""Subject"");
  3494. ReportPropertyChanged(""Subject"");
  3495. OnSubjectChanged();
  3496. }
  3497. }
  3498. private global::System.String _Subject;
  3499. partial void OnSubjectChanging(global::System.String value);
  3500. partial void OnSubjectChanged();
  3501. /// <summary>
  3502. /// No Metadata Documentation available.
  3503. /// </summary>
  3504. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  3505. [DataMemberAttribute()]
  3506. public global::System.String Body
  3507. {
  3508. get
  3509. {
  3510. return _Body;
  3511. }
  3512. set
  3513. {
  3514. OnBodyChanging(value);
  3515. ReportPropertyChanging(""Body"");
  3516. _Body = StructuralObject.SetValidValue(value, true, ""Body"");
  3517. ReportPropertyChanged(""Body"");
  3518. OnBodyChanged();
  3519. }
  3520. }
  3521. private global::System.String _Body;
  3522. partial void OnBodyChanging(global::System.String value);
  3523. partial void OnBodyChanged();
  3524. /// <summary>
  3525. /// No Metadata Documentation available.
  3526. /// </summary>
  3527. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  3528. [DataMemberAttribute()]
  3529. public global::System.Boolean IsRead
  3530. {
  3531. get
  3532. {
  3533. return _IsRead;
  3534. }
  3535. set
  3536. {
  3537. OnIsReadChanging(value);
  3538. ReportPropertyChanging(""IsRead"");
  3539. _IsRead = StructuralObject.SetValidValue(value, ""IsRead"");
  3540. ReportPropertyChanged(""IsRead"");
  3541. OnIsReadChanged();
  3542. }
  3543. }
  3544. private global::System.Boolean _IsRead;
  3545. partial void OnIsReadChanging(global::System.Boolean value);
  3546. partial void OnIsReadChanged();
  3547. #endregion
  3548. #region Navigation Properties
  3549. /// <summary>
  3550. /// No Metadata Documentation available.
  3551. /// </summary>
  3552. [XmlIgnoreAttribute()]
  3553. [SoapIgnoreAttribute()]
  3554. [DataMemberAttribute()]
  3555. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_SentMessages"", ""Sender"")]
  3556. public LoginMm Sender
  3557. {
  3558. get
  3559. {
  3560. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_SentMessages"", ""Sender"").Value;
  3561. }
  3562. set
  3563. {
  3564. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_SentMessages"", ""Sender"").Value = value;
  3565. }
  3566. }
  3567. /// <summary>
  3568. /// No Metadata Documentation available.
  3569. /// </summary>
  3570. [BrowsableAttribute(false)]
  3571. [DataMemberAttribute()]
  3572. public EntityReference<LoginMm> SenderReference
  3573. {
  3574. get
  3575. {
  3576. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_SentMessages"", ""Sender"");
  3577. }
  3578. set
  3579. {
  3580. if ((value != null))
  3581. {
  3582. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_SentMessages"", ""Sender"", value);
  3583. }
  3584. }
  3585. }
  3586. /// <summary>
  3587. /// No Metadata Documentation available.
  3588. /// </summary>
  3589. [XmlIgnoreAttribute()]
  3590. [SoapIgnoreAttribute()]
  3591. [DataMemberAttribute()]
  3592. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_ReceivedMessages"", ""Recipient"")]
  3593. public LoginMm Recipient
  3594. {
  3595. get
  3596. {
  3597. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_ReceivedMessages"", ""Recipient"").Value;
  3598. }
  3599. set
  3600. {
  3601. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_ReceivedMessages"", ""Recipient"").Value = value;
  3602. }
  3603. }
  3604. /// <summary>
  3605. /// No Metadata Documentation available.
  3606. /// </summary>
  3607. [BrowsableAttribute(false)]
  3608. [DataMemberAttribute()]
  3609. public EntityReference<LoginMm> RecipientReference
  3610. {
  3611. get
  3612. {
  3613. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_ReceivedMessages"", ""Recipient"");
  3614. }
  3615. set
  3616. {
  3617. if ((value != null))
  3618. {
  3619. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_ReceivedMessages"", ""Recipient"", value);
  3620. }
  3621. }
  3622. }
  3623. #endregion
  3624. }
  3625. /// <summary>
  3626. /// No Metadata Documentation available.
  3627. /// </summary>
  3628. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""OrderLineMm"")]
  3629. [Serializable()]
  3630. [DataContractAttribute(IsReference=true)]
  3631. [KnownTypeAttribute(typeof(BackOrderLineMm))]
  3632. public partial class OrderLineMm : EntityObject
  3633. {
  3634. #region Factory Method
  3635. /// <summary>
  3636. /// Create a new OrderLineMm object.
  3637. /// </summary>
  3638. /// <param name=""orderId"">Initial value of the OrderId property.</param>
  3639. /// <param name=""productId"">Initial value of the ProductId property.</param>
  3640. /// <param name=""concurrencyToken"">Initial value of the ConcurrencyToken property.</param>
  3641. public static OrderLineMm CreateOrderLineMm(global::System.Int32 orderId, global::System.Int32 productId, global::System.String concurrencyToken)
  3642. {
  3643. OrderLineMm orderLineMm = new OrderLineMm();
  3644. orderLineMm.OrderId = orderId;
  3645. orderLineMm.ProductId = productId;
  3646. orderLineMm.ConcurrencyToken = concurrencyToken;
  3647. return orderLineMm;
  3648. }
  3649. #endregion
  3650. #region Simple Properties
  3651. /// <summary>
  3652. /// No Metadata Documentation available.
  3653. /// </summary>
  3654. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  3655. [DataMemberAttribute()]
  3656. public global::System.Int32 OrderId
  3657. {
  3658. get
  3659. {
  3660. return _OrderId;
  3661. }
  3662. set
  3663. {
  3664. if (_OrderId != value)
  3665. {
  3666. OnOrderIdChanging(value);
  3667. ReportPropertyChanging(""OrderId"");
  3668. _OrderId = StructuralObject.SetValidValue(value, ""OrderId"");
  3669. ReportPropertyChanged(""OrderId"");
  3670. OnOrderIdChanged();
  3671. }
  3672. }
  3673. }
  3674. private global::System.Int32 _OrderId;
  3675. partial void OnOrderIdChanging(global::System.Int32 value);
  3676. partial void OnOrderIdChanged();
  3677. /// <summary>
  3678. /// No Metadata Documentation available.
  3679. /// </summary>
  3680. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  3681. [DataMemberAttribute()]
  3682. public global::System.Int32 ProductId
  3683. {
  3684. get
  3685. {
  3686. return _ProductId;
  3687. }
  3688. set
  3689. {
  3690. if (_ProductId != value)
  3691. {
  3692. OnProductIdChanging(value);
  3693. ReportPropertyChanging(""ProductId"");
  3694. _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
  3695. ReportPropertyChanged(""ProductId"");
  3696. OnProductIdChanged();
  3697. }
  3698. }
  3699. }
  3700. private global::System.Int32 _ProductId;
  3701. partial void OnProductIdChanging(global::System.Int32 value);
  3702. partial void OnProductIdChanged();
  3703. /// <summary>
  3704. /// No Metadata Documentation available.
  3705. /// </summary>
  3706. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  3707. [DataMemberAttribute()]
  3708. public global::System.Int32 Quantity
  3709. {
  3710. get
  3711. {
  3712. return _Quantity;
  3713. }
  3714. set
  3715. {
  3716. OnQuantityChanging(value);
  3717. ReportPropertyChanging(""Quantity"");
  3718. _Quantity = StructuralObject.SetValidValue(value, ""Quantity"");
  3719. ReportPropertyChanged(""Quantity"");
  3720. OnQuantityChanged();
  3721. }
  3722. }
  3723. private global::System.Int32 _Quantity = 1;
  3724. partial void OnQuantityChanging(global::System.Int32 value);
  3725. partial void OnQuantityChanged();
  3726. /// <summary>
  3727. /// No Metadata Documentation available.
  3728. /// </summary>
  3729. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  3730. [DataMemberAttribute()]
  3731. public global::System.String ConcurrencyToken
  3732. {
  3733. get
  3734. {
  3735. return _ConcurrencyToken;
  3736. }
  3737. set
  3738. {
  3739. OnConcurrencyTokenChanging(value);
  3740. ReportPropertyChanging(""ConcurrencyToken"");
  3741. _ConcurrencyToken = StructuralObject.SetValidValue(value, false, ""ConcurrencyToken"");
  3742. ReportPropertyChanged(""ConcurrencyToken"");
  3743. OnConcurrencyTokenChanged();
  3744. }
  3745. }
  3746. private global::System.String _ConcurrencyToken;
  3747. partial void OnConcurrencyTokenChanging(global::System.String value);
  3748. partial void OnConcurrencyTokenChanged();
  3749. #endregion
  3750. #region Navigation Properties
  3751. /// <summary>
  3752. /// No Metadata Documentation available.
  3753. /// </summary>
  3754. [XmlIgnoreAttribute()]
  3755. [SoapIgnoreAttribute()]
  3756. [DataMemberAttribute()]
  3757. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Order_OrderLines"", ""Order"")]
  3758. public OrderMm Order
  3759. {
  3760. get
  3761. {
  3762. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderLines"", ""Order"").Value;
  3763. }
  3764. set
  3765. {
  3766. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderLines"", ""Order"").Value = value;
  3767. }
  3768. }
  3769. /// <summary>
  3770. /// No Metadata Documentation available.
  3771. /// </summary>
  3772. [BrowsableAttribute(false)]
  3773. [DataMemberAttribute()]
  3774. public EntityReference<OrderMm> OrderReference
  3775. {
  3776. get
  3777. {
  3778. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderLines"", ""Order"");
  3779. }
  3780. set
  3781. {
  3782. if ((value != null))
  3783. {
  3784. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderLines"", ""Order"", value);
  3785. }
  3786. }
  3787. }
  3788. /// <summary>
  3789. /// No Metadata Documentation available.
  3790. /// </summary>
  3791. [XmlIgnoreAttribute()]
  3792. [SoapIgnoreAttribute()]
  3793. [DataMemberAttribute()]
  3794. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_OrderLines"", ""Product"")]
  3795. public ProductMm Product
  3796. {
  3797. get
  3798. {
  3799. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_OrderLines"", ""Product"").Value;
  3800. }
  3801. set
  3802. {
  3803. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_OrderLines"", ""Product"").Value = value;
  3804. }
  3805. }
  3806. /// <summary>
  3807. /// No Metadata Documentation available.
  3808. /// </summary>
  3809. [BrowsableAttribute(false)]
  3810. [DataMemberAttribute()]
  3811. public EntityReference<ProductMm> ProductReference
  3812. {
  3813. get
  3814. {
  3815. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_OrderLines"", ""Product"");
  3816. }
  3817. set
  3818. {
  3819. if ((value != null))
  3820. {
  3821. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductMm>(""MonsterNamespace.Product_OrderLines"", ""Product"", value);
  3822. }
  3823. }
  3824. }
  3825. #endregion
  3826. }
  3827. /// <summary>
  3828. /// No Metadata Documentation available.
  3829. /// </summary>
  3830. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""OrderMm"")]
  3831. [Serializable()]
  3832. [DataContractAttribute(IsReference=true)]
  3833. public partial class OrderMm : EntityObject
  3834. {
  3835. #region Factory Method
  3836. /// <summary>
  3837. /// Create a new OrderMm object.
  3838. /// </summary>
  3839. /// <param name=""orderId"">Initial value of the OrderId property.</param>
  3840. /// <param name=""concurrency"">Initial value of the Concurrency property.</param>
  3841. public static OrderMm CreateOrderMm(global::System.Int32 orderId, ConcurrencyInfoMm concurrency)
  3842. {
  3843. OrderMm orderMm = new OrderMm();
  3844. orderMm.OrderId = orderId;
  3845. orderMm.Concurrency = StructuralObject.VerifyComplexObjectIsNotNull(concurrency, ""Concurrency"");
  3846. return orderMm;
  3847. }
  3848. #endregion
  3849. #region Simple Properties
  3850. /// <summary>
  3851. /// No Metadata Documentation available.
  3852. /// </summary>
  3853. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  3854. [DataMemberAttribute()]
  3855. public global::System.Int32 OrderId
  3856. {
  3857. get
  3858. {
  3859. return _OrderId;
  3860. }
  3861. set
  3862. {
  3863. if (_OrderId != value)
  3864. {
  3865. OnOrderIdChanging(value);
  3866. ReportPropertyChanging(""OrderId"");
  3867. _OrderId = StructuralObject.SetValidValue(value, ""OrderId"");
  3868. ReportPropertyChanged(""OrderId"");
  3869. OnOrderIdChanged();
  3870. }
  3871. }
  3872. }
  3873. private global::System.Int32 _OrderId;
  3874. partial void OnOrderIdChanging(global::System.Int32 value);
  3875. partial void OnOrderIdChanged();
  3876. /// <summary>
  3877. /// No Metadata Documentation available.
  3878. /// </summary>
  3879. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  3880. [DataMemberAttribute()]
  3881. public Nullable<global::System.Int32> CustomerId
  3882. {
  3883. get
  3884. {
  3885. return _CustomerId;
  3886. }
  3887. set
  3888. {
  3889. OnCustomerIdChanging(value);
  3890. ReportPropertyChanging(""CustomerId"");
  3891. _CustomerId = StructuralObject.SetValidValue(value, ""CustomerId"");
  3892. ReportPropertyChanged(""CustomerId"");
  3893. OnCustomerIdChanged();
  3894. }
  3895. }
  3896. private Nullable<global::System.Int32> _CustomerId;
  3897. partial void OnCustomerIdChanging(Nullable<global::System.Int32> value);
  3898. partial void OnCustomerIdChanged();
  3899. #endregion
  3900. #region Complex Properties
  3901. /// <summary>
  3902. /// No Metadata Documentation available.
  3903. /// </summary>
  3904. [EdmComplexPropertyAttribute()]
  3905. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  3906. [XmlElement(IsNullable=true)]
  3907. [SoapElement(IsNullable=true)]
  3908. [DataMemberAttribute()]
  3909. public ConcurrencyInfoMm Concurrency
  3910. {
  3911. get
  3912. {
  3913. _Concurrency = GetValidValue(_Concurrency, ""Concurrency"", false, _ConcurrencyInitialized);
  3914. _ConcurrencyInitialized = true;
  3915. return _Concurrency;
  3916. }
  3917. set
  3918. {
  3919. OnConcurrencyChanging(value);
  3920. ReportPropertyChanging(""Concurrency"");
  3921. _Concurrency = SetValidValue(_Concurrency, value, ""Concurrency"");
  3922. _ConcurrencyInitialized = true;
  3923. ReportPropertyChanged(""Concurrency"");
  3924. OnConcurrencyChanged();
  3925. }
  3926. }
  3927. private ConcurrencyInfoMm _Concurrency;
  3928. private bool _ConcurrencyInitialized;
  3929. partial void OnConcurrencyChanging(ConcurrencyInfoMm value);
  3930. partial void OnConcurrencyChanged();
  3931. #endregion
  3932. #region Navigation Properties
  3933. /// <summary>
  3934. /// No Metadata Documentation available.
  3935. /// </summary>
  3936. [XmlIgnoreAttribute()]
  3937. [SoapIgnoreAttribute()]
  3938. [DataMemberAttribute()]
  3939. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Customer_Orders"", ""Customer"")]
  3940. public CustomerMm Customer
  3941. {
  3942. get
  3943. {
  3944. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Orders"", ""Customer"").Value;
  3945. }
  3946. set
  3947. {
  3948. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Orders"", ""Customer"").Value = value;
  3949. }
  3950. }
  3951. /// <summary>
  3952. /// No Metadata Documentation available.
  3953. /// </summary>
  3954. [BrowsableAttribute(false)]
  3955. [DataMemberAttribute()]
  3956. public EntityReference<CustomerMm> CustomerReference
  3957. {
  3958. get
  3959. {
  3960. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Orders"", ""Customer"");
  3961. }
  3962. set
  3963. {
  3964. if ((value != null))
  3965. {
  3966. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Orders"", ""Customer"", value);
  3967. }
  3968. }
  3969. }
  3970. /// <summary>
  3971. /// No Metadata Documentation available.
  3972. /// </summary>
  3973. [XmlIgnoreAttribute()]
  3974. [SoapIgnoreAttribute()]
  3975. [DataMemberAttribute()]
  3976. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Order_OrderLines"", ""OrderLines"")]
  3977. public EntityCollection<OrderLineMm> OrderLines
  3978. {
  3979. get
  3980. {
  3981. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<OrderLineMm>(""MonsterNamespace.Order_OrderLines"", ""OrderLines"");
  3982. }
  3983. set
  3984. {
  3985. if ((value != null))
  3986. {
  3987. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<OrderLineMm>(""MonsterNamespace.Order_OrderLines"", ""OrderLines"", value);
  3988. }
  3989. }
  3990. }
  3991. /// <summary>
  3992. /// No Metadata Documentation available.
  3993. /// </summary>
  3994. [XmlIgnoreAttribute()]
  3995. [SoapIgnoreAttribute()]
  3996. [DataMemberAttribute()]
  3997. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Order_OrderNotes"", ""Notes"")]
  3998. public EntityCollection<OrderNoteMm> Notes
  3999. {
  4000. get
  4001. {
  4002. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<OrderNoteMm>(""MonsterNamespace.Order_OrderNotes"", ""Notes"");
  4003. }
  4004. set
  4005. {
  4006. if ((value != null))
  4007. {
  4008. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<OrderNoteMm>(""MonsterNamespace.Order_OrderNotes"", ""Notes"", value);
  4009. }
  4010. }
  4011. }
  4012. /// <summary>
  4013. /// No Metadata Documentation available.
  4014. /// </summary>
  4015. [XmlIgnoreAttribute()]
  4016. [SoapIgnoreAttribute()]
  4017. [DataMemberAttribute()]
  4018. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_Orders"", ""Login"")]
  4019. public LoginMm Login
  4020. {
  4021. get
  4022. {
  4023. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_Orders"", ""Login"").Value;
  4024. }
  4025. set
  4026. {
  4027. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_Orders"", ""Login"").Value = value;
  4028. }
  4029. }
  4030. /// <summary>
  4031. /// No Metadata Documentation available.
  4032. /// </summary>
  4033. [BrowsableAttribute(false)]
  4034. [DataMemberAttribute()]
  4035. public EntityReference<LoginMm> LoginReference
  4036. {
  4037. get
  4038. {
  4039. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_Orders"", ""Login"");
  4040. }
  4041. set
  4042. {
  4043. if ((value != null))
  4044. {
  4045. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_Orders"", ""Login"", value);
  4046. }
  4047. }
  4048. }
  4049. #endregion
  4050. }
  4051. /// <summary>
  4052. /// No Metadata Documentation available.
  4053. /// </summary>
  4054. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""OrderNoteMm"")]
  4055. [Serializable()]
  4056. [DataContractAttribute(IsReference=true)]
  4057. public partial class OrderNoteMm : EntityObject
  4058. {
  4059. #region Factory Method
  4060. /// <summary>
  4061. /// Create a new OrderNoteMm object.
  4062. /// </summary>
  4063. /// <param name=""noteId"">Initial value of the NoteId property.</param>
  4064. /// <param name=""note"">Initial value of the Note property.</param>
  4065. public static OrderNoteMm CreateOrderNoteMm(global::System.Int32 noteId, global::System.String note)
  4066. {
  4067. OrderNoteMm orderNoteMm = new OrderNoteMm();
  4068. orderNoteMm.NoteId = noteId;
  4069. orderNoteMm.Note = note;
  4070. return orderNoteMm;
  4071. }
  4072. #endregion
  4073. #region Simple Properties
  4074. /// <summary>
  4075. /// No Metadata Documentation available.
  4076. /// </summary>
  4077. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  4078. [DataMemberAttribute()]
  4079. public global::System.Int32 NoteId
  4080. {
  4081. get
  4082. {
  4083. return _NoteId;
  4084. }
  4085. set
  4086. {
  4087. if (_NoteId != value)
  4088. {
  4089. OnNoteIdChanging(value);
  4090. ReportPropertyChanging(""NoteId"");
  4091. _NoteId = StructuralObject.SetValidValue(value, ""NoteId"");
  4092. ReportPropertyChanged(""NoteId"");
  4093. OnNoteIdChanged();
  4094. }
  4095. }
  4096. }
  4097. private global::System.Int32 _NoteId;
  4098. partial void OnNoteIdChanging(global::System.Int32 value);
  4099. partial void OnNoteIdChanged();
  4100. /// <summary>
  4101. /// No Metadata Documentation available.
  4102. /// </summary>
  4103. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  4104. [DataMemberAttribute()]
  4105. public global::System.String Note
  4106. {
  4107. get
  4108. {
  4109. return _Note;
  4110. }
  4111. set
  4112. {
  4113. OnNoteChanging(value);
  4114. ReportPropertyChanging(""Note"");
  4115. _Note = StructuralObject.SetValidValue(value, false, ""Note"");
  4116. ReportPropertyChanged(""Note"");
  4117. OnNoteChanged();
  4118. }
  4119. }
  4120. private global::System.String _Note;
  4121. partial void OnNoteChanging(global::System.String value);
  4122. partial void OnNoteChanged();
  4123. #endregion
  4124. #region Navigation Properties
  4125. /// <summary>
  4126. /// No Metadata Documentation available.
  4127. /// </summary>
  4128. [XmlIgnoreAttribute()]
  4129. [SoapIgnoreAttribute()]
  4130. [DataMemberAttribute()]
  4131. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Order_OrderNotes"", ""Order"")]
  4132. public OrderMm Order
  4133. {
  4134. get
  4135. {
  4136. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderNotes"", ""Order"").Value;
  4137. }
  4138. set
  4139. {
  4140. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderNotes"", ""Order"").Value = value;
  4141. }
  4142. }
  4143. /// <summary>
  4144. /// No Metadata Documentation available.
  4145. /// </summary>
  4146. [BrowsableAttribute(false)]
  4147. [DataMemberAttribute()]
  4148. public EntityReference<OrderMm> OrderReference
  4149. {
  4150. get
  4151. {
  4152. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderNotes"", ""Order"");
  4153. }
  4154. set
  4155. {
  4156. if ((value != null))
  4157. {
  4158. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderNotes"", ""Order"", value);
  4159. }
  4160. }
  4161. }
  4162. #endregion
  4163. }
  4164. /// <summary>
  4165. /// No Metadata Documentation available.
  4166. /// </summary>
  4167. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""OrderQualityCheckMm"")]
  4168. [Serializable()]
  4169. [DataContractAttribute(IsReference=true)]
  4170. public partial class OrderQualityCheckMm : EntityObject
  4171. {
  4172. #region Factory Method
  4173. /// <summary>
  4174. /// Create a new OrderQualityCheckMm object.
  4175. /// </summary>
  4176. /// <param name=""orderId"">Initial value of the OrderId property.</param>
  4177. /// <param name=""checkedBy"">Initial value of the CheckedBy property.</param>
  4178. /// <param name=""checkedDateTime"">Initial value of the CheckedDateTime property.</param>
  4179. public static OrderQualityCheckMm CreateOrderQualityCheckMm(global::System.Int32 orderId, global::System.String checkedBy, global::System.DateTime checkedDateTime)
  4180. {
  4181. OrderQualityCheckMm orderQualityCheckMm = new OrderQualityCheckMm();
  4182. orderQualityCheckMm.OrderId = orderId;
  4183. orderQualityCheckMm.CheckedBy = checkedBy;
  4184. orderQualityCheckMm.CheckedDateTime = checkedDateTime;
  4185. return orderQualityCheckMm;
  4186. }
  4187. #endregion
  4188. #region Simple Properties
  4189. /// <summary>
  4190. /// No Metadata Documentation available.
  4191. /// </summary>
  4192. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  4193. [DataMemberAttribute()]
  4194. public global::System.Int32 OrderId
  4195. {
  4196. get
  4197. {
  4198. return _OrderId;
  4199. }
  4200. set
  4201. {
  4202. if (_OrderId != value)
  4203. {
  4204. OnOrderIdChanging(value);
  4205. ReportPropertyChanging(""OrderId"");
  4206. _OrderId = StructuralObject.SetValidValue(value, ""OrderId"");
  4207. ReportPropertyChanged(""OrderId"");
  4208. OnOrderIdChanged();
  4209. }
  4210. }
  4211. }
  4212. private global::System.Int32 _OrderId;
  4213. partial void OnOrderIdChanging(global::System.Int32 value);
  4214. partial void OnOrderIdChanged();
  4215. /// <summary>
  4216. /// No Metadata Documentation available.
  4217. /// </summary>
  4218. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  4219. [DataMemberAttribute()]
  4220. public global::System.String CheckedBy
  4221. {
  4222. get
  4223. {
  4224. return _CheckedBy;
  4225. }
  4226. set
  4227. {
  4228. OnCheckedByChanging(value);
  4229. ReportPropertyChanging(""CheckedBy"");
  4230. _CheckedBy = StructuralObject.SetValidValue(value, false, ""CheckedBy"");
  4231. ReportPropertyChanged(""CheckedBy"");
  4232. OnCheckedByChanged();
  4233. }
  4234. }
  4235. private global::System.String _CheckedBy;
  4236. partial void OnCheckedByChanging(global::System.String value);
  4237. partial void OnCheckedByChanged();
  4238. /// <summary>
  4239. /// No Metadata Documentation available.
  4240. /// </summary>
  4241. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  4242. [DataMemberAttribute()]
  4243. public global::System.DateTime CheckedDateTime
  4244. {
  4245. get
  4246. {
  4247. return _CheckedDateTime;
  4248. }
  4249. set
  4250. {
  4251. OnCheckedDateTimeChanging(value);
  4252. ReportPropertyChanging(""CheckedDateTime"");
  4253. _CheckedDateTime = StructuralObject.SetValidValue(value, ""CheckedDateTime"");
  4254. ReportPropertyChanged(""CheckedDateTime"");
  4255. OnCheckedDateTimeChanged();
  4256. }
  4257. }
  4258. private global::System.DateTime _CheckedDateTime;
  4259. partial void OnCheckedDateTimeChanging(global::System.DateTime value);
  4260. partial void OnCheckedDateTimeChanged();
  4261. #endregion
  4262. #region Navigation Properties
  4263. /// <summary>
  4264. /// No Metadata Documentation available.
  4265. /// </summary>
  4266. [XmlIgnoreAttribute()]
  4267. [SoapIgnoreAttribute()]
  4268. [DataMemberAttribute()]
  4269. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Order_QualityCheck"", ""Order"")]
  4270. public OrderMm Order
  4271. {
  4272. get
  4273. {
  4274. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_QualityCheck"", ""Order"").Value;
  4275. }
  4276. set
  4277. {
  4278. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_QualityCheck"", ""Order"").Value = value;
  4279. }
  4280. }
  4281. /// <summary>
  4282. /// No Metadata Documentation available.
  4283. /// </summary>
  4284. [BrowsableAttribute(false)]
  4285. [DataMemberAttribute()]
  4286. public EntityReference<OrderMm> OrderReference
  4287. {
  4288. get
  4289. {
  4290. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_QualityCheck"", ""Order"");
  4291. }
  4292. set
  4293. {
  4294. if ((value != null))
  4295. {
  4296. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<OrderMm>(""MonsterNamespace.Order_QualityCheck"", ""Order"", value);
  4297. }
  4298. }
  4299. }
  4300. #endregion
  4301. }
  4302. /// <summary>
  4303. /// No Metadata Documentation available.
  4304. /// </summary>
  4305. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""PageViewMm"")]
  4306. [Serializable()]
  4307. [DataContractAttribute(IsReference=true)]
  4308. [KnownTypeAttribute(typeof(ProductPageViewMm))]
  4309. public partial class PageViewMm : EntityObject
  4310. {
  4311. #region Factory Method
  4312. /// <summary>
  4313. /// Create a new PageViewMm object.
  4314. /// </summary>
  4315. /// <param name=""pageViewId"">Initial value of the PageViewId property.</param>
  4316. /// <param name=""username"">Initial value of the Username property.</param>
  4317. /// <param name=""viewed"">Initial value of the Viewed property.</param>
  4318. /// <param name=""pageUrl"">Initial value of the PageUrl property.</param>
  4319. public static PageViewMm CreatePageViewMm(global::System.Int32 pageViewId, global::System.String username, global::System.DateTime viewed, global::System.String pageUrl)
  4320. {
  4321. PageViewMm pageViewMm = new PageViewMm();
  4322. pageViewMm.PageViewId = pageViewId;
  4323. pageViewMm.Username = username;
  4324. pageViewMm.Viewed = viewed;
  4325. pageViewMm.PageUrl = pageUrl;
  4326. return pageViewMm;
  4327. }
  4328. #endregion
  4329. #region Simple Properties
  4330. /// <summary>
  4331. /// No Metadata Documentation available.
  4332. /// </summary>
  4333. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  4334. [DataMemberAttribute()]
  4335. public global::System.Int32 PageViewId
  4336. {
  4337. get
  4338. {
  4339. return _PageViewId;
  4340. }
  4341. set
  4342. {
  4343. if (_PageViewId != value)
  4344. {
  4345. OnPageViewIdChanging(value);
  4346. ReportPropertyChanging(""PageViewId"");
  4347. _PageViewId = StructuralObject.SetValidValue(value, ""PageViewId"");
  4348. ReportPropertyChanged(""PageViewId"");
  4349. OnPageViewIdChanged();
  4350. }
  4351. }
  4352. }
  4353. private global::System.Int32 _PageViewId;
  4354. partial void OnPageViewIdChanging(global::System.Int32 value);
  4355. partial void OnPageViewIdChanged();
  4356. /// <summary>
  4357. /// No Metadata Documentation available.
  4358. /// </summary>
  4359. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  4360. [DataMemberAttribute()]
  4361. public global::System.String Username
  4362. {
  4363. get
  4364. {
  4365. return _Username;
  4366. }
  4367. set
  4368. {
  4369. OnUsernameChanging(value);
  4370. ReportPropertyChanging(""Username"");
  4371. _Username = StructuralObject.SetValidValue(value, false, ""Username"");
  4372. ReportPropertyChanged(""Username"");
  4373. OnUsernameChanged();
  4374. }
  4375. }
  4376. private global::System.String _Username;
  4377. partial void OnUsernameChanging(global::System.String value);
  4378. partial void OnUsernameChanged();
  4379. /// <summary>
  4380. /// No Metadata Documentation available.
  4381. /// </summary>
  4382. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  4383. [DataMemberAttribute()]
  4384. public global::System.DateTime Viewed
  4385. {
  4386. get
  4387. {
  4388. return _Viewed;
  4389. }
  4390. set
  4391. {
  4392. OnViewedChanging(value);
  4393. ReportPropertyChanging(""Viewed"");
  4394. _Viewed = StructuralObject.SetValidValue(value, ""Viewed"");
  4395. ReportPropertyChanged(""Viewed"");
  4396. OnViewedChanged();
  4397. }
  4398. }
  4399. private global::System.DateTime _Viewed;
  4400. partial void OnViewedChanging(global::System.DateTime value);
  4401. partial void OnViewedChanged();
  4402. /// <summary>
  4403. /// No Metadata Documentation available.
  4404. /// </summary>
  4405. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  4406. [DataMemberAttribute()]
  4407. public global::System.String PageUrl
  4408. {
  4409. get
  4410. {
  4411. return _PageUrl;
  4412. }
  4413. set
  4414. {
  4415. OnPageUrlChanging(value);
  4416. ReportPropertyChanging(""PageUrl"");
  4417. _PageUrl = StructuralObject.SetValidValue(value, false, ""PageUrl"");
  4418. ReportPropertyChanged(""PageUrl"");
  4419. OnPageUrlChanged();
  4420. }
  4421. }
  4422. private global::System.String _PageUrl;
  4423. partial void OnPageUrlChanging(global::System.String value);
  4424. partial void OnPageUrlChanged();
  4425. #endregion
  4426. #region Navigation Properties
  4427. /// <summary>
  4428. /// No Metadata Documentation available.
  4429. /// </summary>
  4430. [XmlIgnoreAttribute()]
  4431. [SoapIgnoreAttribute()]
  4432. [DataMemberAttribute()]
  4433. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_PageViews"", ""Login"")]
  4434. public LoginMm Login
  4435. {
  4436. get
  4437. {
  4438. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_PageViews"", ""Login"").Value;
  4439. }
  4440. set
  4441. {
  4442. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_PageViews"", ""Login"").Value = value;
  4443. }
  4444. }
  4445. /// <summary>
  4446. /// No Metadata Documentation available.
  4447. /// </summary>
  4448. [BrowsableAttribute(false)]
  4449. [DataMemberAttribute()]
  4450. public EntityReference<LoginMm> LoginReference
  4451. {
  4452. get
  4453. {
  4454. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_PageViews"", ""Login"");
  4455. }
  4456. set
  4457. {
  4458. if ((value != null))
  4459. {
  4460. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_PageViews"", ""Login"", value);
  4461. }
  4462. }
  4463. }
  4464. #endregion
  4465. }
  4466. /// <summary>
  4467. /// No Metadata Documentation available.
  4468. /// </summary>
  4469. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""PasswordResetMm"")]
  4470. [Serializable()]
  4471. [DataContractAttribute(IsReference=true)]
  4472. public partial class PasswordResetMm : EntityObject
  4473. {
  4474. #region Factory Method
  4475. /// <summary>
  4476. /// Create a new PasswordResetMm object.
  4477. /// </summary>
  4478. /// <param name=""resetNo"">Initial value of the ResetNo property.</param>
  4479. /// <param name=""username"">Initial value of the Username property.</param>
  4480. /// <param name=""tempPassword"">Initial value of the TempPassword property.</param>
  4481. /// <param name=""emailedTo"">Initial value of the EmailedTo property.</param>
  4482. public static PasswordResetMm CreatePasswordResetMm(global::System.Int32 resetNo, global::System.String username, global::System.String tempPassword, global::System.String emailedTo)
  4483. {
  4484. PasswordResetMm passwordResetMm = new PasswordResetMm();
  4485. passwordResetMm.ResetNo = resetNo;
  4486. passwordResetMm.Username = username;
  4487. passwordResetMm.TempPassword = tempPassword;
  4488. passwordResetMm.EmailedTo = emailedTo;
  4489. return passwordResetMm;
  4490. }
  4491. #endregion
  4492. #region Simple Properties
  4493. /// <summary>
  4494. /// No Metadata Documentation available.
  4495. /// </summary>
  4496. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  4497. [DataMemberAttribute()]
  4498. public global::System.Int32 ResetNo
  4499. {
  4500. get
  4501. {
  4502. return _ResetNo;
  4503. }
  4504. set
  4505. {
  4506. if (_ResetNo != value)
  4507. {
  4508. OnResetNoChanging(value);
  4509. ReportPropertyChanging(""ResetNo"");
  4510. _ResetNo = StructuralObject.SetValidValue(value, ""ResetNo"");
  4511. ReportPropertyChanged(""ResetNo"");
  4512. OnResetNoChanged();
  4513. }
  4514. }
  4515. }
  4516. private global::System.Int32 _ResetNo;
  4517. partial void OnResetNoChanging(global::System.Int32 value);
  4518. partial void OnResetNoChanged();
  4519. /// <summary>
  4520. /// No Metadata Documentation available.
  4521. /// </summary>
  4522. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  4523. [DataMemberAttribute()]
  4524. public global::System.String Username
  4525. {
  4526. get
  4527. {
  4528. return _Username;
  4529. }
  4530. set
  4531. {
  4532. if (_Username != value)
  4533. {
  4534. OnUsernameChanging(value);
  4535. ReportPropertyChanging(""Username"");
  4536. _Username = StructuralObject.SetValidValue(value, false, ""Username"");
  4537. ReportPropertyChanged(""Username"");
  4538. OnUsernameChanged();
  4539. }
  4540. }
  4541. }
  4542. private global::System.String _Username;
  4543. partial void OnUsernameChanging(global::System.String value);
  4544. partial void OnUsernameChanged();
  4545. /// <summary>
  4546. /// No Metadata Documentation available.
  4547. /// </summary>
  4548. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  4549. [DataMemberAttribute()]
  4550. public global::System.String TempPassword
  4551. {
  4552. get
  4553. {
  4554. return _TempPassword;
  4555. }
  4556. set
  4557. {
  4558. OnTempPasswordChanging(value);
  4559. ReportPropertyChanging(""TempPassword"");
  4560. _TempPassword = StructuralObject.SetValidValue(value, false, ""TempPassword"");
  4561. ReportPropertyChanged(""TempPassword"");
  4562. OnTempPasswordChanged();
  4563. }
  4564. }
  4565. private global::System.String _TempPassword;
  4566. partial void OnTempPasswordChanging(global::System.String value);
  4567. partial void OnTempPasswordChanged();
  4568. /// <summary>
  4569. /// No Metadata Documentation available.
  4570. /// </summary>
  4571. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  4572. [DataMemberAttribute()]
  4573. public global::System.String EmailedTo
  4574. {
  4575. get
  4576. {
  4577. return _EmailedTo;
  4578. }
  4579. set
  4580. {
  4581. OnEmailedToChanging(value);
  4582. ReportPropertyChanging(""EmailedTo"");
  4583. _EmailedTo = StructuralObject.SetValidValue(value, false, ""EmailedTo"");
  4584. ReportPropertyChanged(""EmailedTo"");
  4585. OnEmailedToChanged();
  4586. }
  4587. }
  4588. private global::System.String _EmailedTo;
  4589. partial void OnEmailedToChanging(global::System.String value);
  4590. partial void OnEmailedToChanged();
  4591. #endregion
  4592. #region Navigation Properties
  4593. /// <summary>
  4594. /// No Metadata Documentation available.
  4595. /// </summary>
  4596. [XmlIgnoreAttribute()]
  4597. [SoapIgnoreAttribute()]
  4598. [DataMemberAttribute()]
  4599. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_PasswordResets"", ""Login"")]
  4600. public LoginMm Login
  4601. {
  4602. get
  4603. {
  4604. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_PasswordResets"", ""Login"").Value;
  4605. }
  4606. set
  4607. {
  4608. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_PasswordResets"", ""Login"").Value = value;
  4609. }
  4610. }
  4611. /// <summary>
  4612. /// No Metadata Documentation available.
  4613. /// </summary>
  4614. [BrowsableAttribute(false)]
  4615. [DataMemberAttribute()]
  4616. public EntityReference<LoginMm> LoginReference
  4617. {
  4618. get
  4619. {
  4620. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_PasswordResets"", ""Login"");
  4621. }
  4622. set
  4623. {
  4624. if ((value != null))
  4625. {
  4626. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_PasswordResets"", ""Login"", value);
  4627. }
  4628. }
  4629. }
  4630. #endregion
  4631. }
  4632. /// <summary>
  4633. /// No Metadata Documentation available.
  4634. /// </summary>
  4635. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ProductDetailMm"")]
  4636. [Serializable()]
  4637. [DataContractAttribute(IsReference=true)]
  4638. public partial class ProductDetailMm : EntityObject
  4639. {
  4640. #region Factory Method
  4641. /// <summary>
  4642. /// Create a new ProductDetailMm object.
  4643. /// </summary>
  4644. /// <param name=""productId"">Initial value of the ProductId property.</param>
  4645. /// <param name=""details"">Initial value of the Details property.</param>
  4646. public static ProductDetailMm CreateProductDetailMm(global::System.Int32 productId, global::System.String details)
  4647. {
  4648. ProductDetailMm productDetailMm = new ProductDetailMm();
  4649. productDetailMm.ProductId = productId;
  4650. productDetailMm.Details = details;
  4651. return productDetailMm;
  4652. }
  4653. #endregion
  4654. #region Simple Properties
  4655. /// <summary>
  4656. /// No Metadata Documentation available.
  4657. /// </summary>
  4658. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  4659. [DataMemberAttribute()]
  4660. public global::System.Int32 ProductId
  4661. {
  4662. get
  4663. {
  4664. return _ProductId;
  4665. }
  4666. set
  4667. {
  4668. if (_ProductId != value)
  4669. {
  4670. OnProductIdChanging(value);
  4671. ReportPropertyChanging(""ProductId"");
  4672. _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
  4673. ReportPropertyChanged(""ProductId"");
  4674. OnProductIdChanged();
  4675. }
  4676. }
  4677. }
  4678. private global::System.Int32 _ProductId;
  4679. partial void OnProductIdChanging(global::System.Int32 value);
  4680. partial void OnProductIdChanged();
  4681. /// <summary>
  4682. /// No Metadata Documentation available.
  4683. /// </summary>
  4684. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  4685. [DataMemberAttribute()]
  4686. public global::System.String Details
  4687. {
  4688. get
  4689. {
  4690. return _Details;
  4691. }
  4692. set
  4693. {
  4694. OnDetailsChanging(value);
  4695. ReportPropertyChanging(""Details"");
  4696. _Details = StructuralObject.SetValidValue(value, false, ""Details"");
  4697. ReportPropertyChanged(""Details"");
  4698. OnDetailsChanged();
  4699. }
  4700. }
  4701. private global::System.String _Details;
  4702. partial void OnDetailsChanging(global::System.String value);
  4703. partial void OnDetailsChanged();
  4704. #endregion
  4705. #region Navigation Properties
  4706. /// <summary>
  4707. /// No Metadata Documentation available.
  4708. /// </summary>
  4709. [XmlIgnoreAttribute()]
  4710. [SoapIgnoreAttribute()]
  4711. [DataMemberAttribute()]
  4712. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_ProductDetail"", ""Product"")]
  4713. public ProductMm Product
  4714. {
  4715. get
  4716. {
  4717. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductDetail"", ""Product"").Value;
  4718. }
  4719. set
  4720. {
  4721. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductDetail"", ""Product"").Value = value;
  4722. }
  4723. }
  4724. /// <summary>
  4725. /// No Metadata Documentation available.
  4726. /// </summary>
  4727. [BrowsableAttribute(false)]
  4728. [DataMemberAttribute()]
  4729. public EntityReference<ProductMm> ProductReference
  4730. {
  4731. get
  4732. {
  4733. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductDetail"", ""Product"");
  4734. }
  4735. set
  4736. {
  4737. if ((value != null))
  4738. {
  4739. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductDetail"", ""Product"", value);
  4740. }
  4741. }
  4742. }
  4743. #endregion
  4744. }
  4745. /// <summary>
  4746. /// No Metadata Documentation available.
  4747. /// </summary>
  4748. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ProductMm"")]
  4749. [Serializable()]
  4750. [DataContractAttribute(IsReference=true)]
  4751. [KnownTypeAttribute(typeof(DiscontinuedProductMm))]
  4752. public partial class ProductMm : EntityObject
  4753. {
  4754. #region Factory Method
  4755. /// <summary>
  4756. /// Create a new ProductMm object.
  4757. /// </summary>
  4758. /// <param name=""productId"">Initial value of the ProductId property.</param>
  4759. /// <param name=""dimensions"">Initial value of the Dimensions property.</param>
  4760. /// <param name=""baseConcurrency"">Initial value of the BaseConcurrency property.</param>
  4761. /// <param name=""complexConcurrency"">Initial value of the ComplexConcurrency property.</param>
  4762. /// <param name=""nestedComplexConcurrency"">Initial value of the NestedComplexConcurrency property.</param>
  4763. public static ProductMm CreateProductMm(global::System.Int32 productId, DimensionsMm dimensions, global::System.String baseConcurrency, ConcurrencyInfoMm complexConcurrency, AuditInfoMm nestedComplexConcurrency)
  4764. {
  4765. ProductMm productMm = new ProductMm();
  4766. productMm.ProductId = productId;
  4767. productMm.Dimensions = StructuralObject.VerifyComplexObjectIsNotNull(dimensions, ""Dimensions"");
  4768. productMm.BaseConcurrency = baseConcurrency;
  4769. productMm.ComplexConcurrency = StructuralObject.VerifyComplexObjectIsNotNull(complexConcurrency, ""ComplexConcurrency"");
  4770. productMm.NestedComplexConcurrency = StructuralObject.VerifyComplexObjectIsNotNull(nestedComplexConcurrency, ""NestedComplexConcurrency"");
  4771. return productMm;
  4772. }
  4773. #endregion
  4774. #region Simple Properties
  4775. /// <summary>
  4776. /// No Metadata Documentation available.
  4777. /// </summary>
  4778. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  4779. [DataMemberAttribute()]
  4780. public global::System.Int32 ProductId
  4781. {
  4782. get
  4783. {
  4784. return _ProductId;
  4785. }
  4786. set
  4787. {
  4788. if (_ProductId != value)
  4789. {
  4790. OnProductIdChanging(value);
  4791. ReportPropertyChanging(""ProductId"");
  4792. _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
  4793. ReportPropertyChanged(""ProductId"");
  4794. OnProductIdChanged();
  4795. }
  4796. }
  4797. }
  4798. private global::System.Int32 _ProductId;
  4799. partial void OnProductIdChanging(global::System.Int32 value);
  4800. partial void OnProductIdChanged();
  4801. /// <summary>
  4802. /// No Metadata Documentation available.
  4803. /// </summary>
  4804. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  4805. [DataMemberAttribute()]
  4806. public global::System.String Description
  4807. {
  4808. get
  4809. {
  4810. return _Description;
  4811. }
  4812. set
  4813. {
  4814. OnDescriptionChanging(value);
  4815. ReportPropertyChanging(""Description"");
  4816. _Description = StructuralObject.SetValidValue(value, true, ""Description"");
  4817. ReportPropertyChanged(""Description"");
  4818. OnDescriptionChanged();
  4819. }
  4820. }
  4821. private global::System.String _Description;
  4822. partial void OnDescriptionChanging(global::System.String value);
  4823. partial void OnDescriptionChanged();
  4824. /// <summary>
  4825. /// No Metadata Documentation available.
  4826. /// </summary>
  4827. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  4828. [DataMemberAttribute()]
  4829. public global::System.String BaseConcurrency
  4830. {
  4831. get
  4832. {
  4833. return _BaseConcurrency;
  4834. }
  4835. set
  4836. {
  4837. OnBaseConcurrencyChanging(value);
  4838. ReportPropertyChanging(""BaseConcurrency"");
  4839. _BaseConcurrency = StructuralObject.SetValidValue(value, false, ""BaseConcurrency"");
  4840. ReportPropertyChanged(""BaseConcurrency"");
  4841. OnBaseConcurrencyChanged();
  4842. }
  4843. }
  4844. private global::System.String _BaseConcurrency;
  4845. partial void OnBaseConcurrencyChanging(global::System.String value);
  4846. partial void OnBaseConcurrencyChanged();
  4847. #endregion
  4848. #region Complex Properties
  4849. /// <summary>
  4850. /// No Metadata Documentation available.
  4851. /// </summary>
  4852. [EdmComplexPropertyAttribute()]
  4853. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  4854. [XmlElement(IsNullable=true)]
  4855. [SoapElement(IsNullable=true)]
  4856. [DataMemberAttribute()]
  4857. public DimensionsMm Dimensions
  4858. {
  4859. get
  4860. {
  4861. _Dimensions = GetValidValue(_Dimensions, ""Dimensions"", false, _DimensionsInitialized);
  4862. _DimensionsInitialized = true;
  4863. return _Dimensions;
  4864. }
  4865. set
  4866. {
  4867. OnDimensionsChanging(value);
  4868. ReportPropertyChanging(""Dimensions"");
  4869. _Dimensions = SetValidValue(_Dimensions, value, ""Dimensions"");
  4870. _DimensionsInitialized = true;
  4871. ReportPropertyChanged(""Dimensions"");
  4872. OnDimensionsChanged();
  4873. }
  4874. }
  4875. private DimensionsMm _Dimensions;
  4876. private bool _DimensionsInitialized;
  4877. partial void OnDimensionsChanging(DimensionsMm value);
  4878. partial void OnDimensionsChanged();
  4879. /// <summary>
  4880. /// No Metadata Documentation available.
  4881. /// </summary>
  4882. [EdmComplexPropertyAttribute()]
  4883. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  4884. [XmlElement(IsNullable=true)]
  4885. [SoapElement(IsNullable=true)]
  4886. [DataMemberAttribute()]
  4887. public ConcurrencyInfoMm ComplexConcurrency
  4888. {
  4889. get
  4890. {
  4891. _ComplexConcurrency = GetValidValue(_ComplexConcurrency, ""ComplexConcurrency"", false, _ComplexConcurrencyInitialized);
  4892. _ComplexConcurrencyInitialized = true;
  4893. return _ComplexConcurrency;
  4894. }
  4895. set
  4896. {
  4897. OnComplexConcurrencyChanging(value);
  4898. ReportPropertyChanging(""ComplexConcurrency"");
  4899. _ComplexConcurrency = SetValidValue(_ComplexConcurrency, value, ""ComplexConcurrency"");
  4900. _ComplexConcurrencyInitialized = true;
  4901. ReportPropertyChanged(""ComplexConcurrency"");
  4902. OnComplexConcurrencyChanged();
  4903. }
  4904. }
  4905. private ConcurrencyInfoMm _ComplexConcurrency;
  4906. private bool _ComplexConcurrencyInitialized;
  4907. partial void OnComplexConcurrencyChanging(ConcurrencyInfoMm value);
  4908. partial void OnComplexConcurrencyChanged();
  4909. /// <summary>
  4910. /// No Metadata Documentation available.
  4911. /// </summary>
  4912. [EdmComplexPropertyAttribute()]
  4913. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  4914. [XmlElement(IsNullable=true)]
  4915. [SoapElement(IsNullable=true)]
  4916. [DataMemberAttribute()]
  4917. public AuditInfoMm NestedComplexConcurrency
  4918. {
  4919. get
  4920. {
  4921. _NestedComplexConcurrency = GetValidValue(_NestedComplexConcurrency, ""NestedComplexConcurrency"", false, _NestedComplexConcurrencyInitialized);
  4922. _NestedComplexConcurrencyInitialized = true;
  4923. return _NestedComplexConcurrency;
  4924. }
  4925. set
  4926. {
  4927. OnNestedComplexConcurrencyChanging(value);
  4928. ReportPropertyChanging(""NestedComplexConcurrency"");
  4929. _NestedComplexConcurrency = SetValidValue(_NestedComplexConcurrency, value, ""NestedComplexConcurrency"");
  4930. _NestedComplexConcurrencyInitialized = true;
  4931. ReportPropertyChanged(""NestedComplexConcurrency"");
  4932. OnNestedComplexConcurrencyChanged();
  4933. }
  4934. }
  4935. private AuditInfoMm _NestedComplexConcurrency;
  4936. private bool _NestedComplexConcurrencyInitialized;
  4937. partial void OnNestedComplexConcurrencyChanging(AuditInfoMm value);
  4938. partial void OnNestedComplexConcurrencyChanged();
  4939. #endregion
  4940. #region Navigation Properties
  4941. /// <summary>
  4942. /// No Metadata Documentation available.
  4943. /// </summary>
  4944. [XmlIgnoreAttribute()]
  4945. [SoapIgnoreAttribute()]
  4946. [DataMemberAttribute()]
  4947. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Products_Suppliers"", ""Suppliers"")]
  4948. public EntityCollection<SupplierMm> Suppliers
  4949. {
  4950. get
  4951. {
  4952. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SupplierMm>(""MonsterNamespace.Products_Suppliers"", ""Suppliers"");
  4953. }
  4954. set
  4955. {
  4956. if ((value != null))
  4957. {
  4958. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SupplierMm>(""MonsterNamespace.Products_Suppliers"", ""Suppliers"", value);
  4959. }
  4960. }
  4961. }
  4962. /// <summary>
  4963. /// No Metadata Documentation available.
  4964. /// </summary>
  4965. [XmlIgnoreAttribute()]
  4966. [SoapIgnoreAttribute()]
  4967. [DataMemberAttribute()]
  4968. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""DiscontinuedProduct_Replacement"", ""DiscontinuedProduct"")]
  4969. public EntityCollection<DiscontinuedProductMm> Replaces
  4970. {
  4971. get
  4972. {
  4973. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<DiscontinuedProductMm>(""MonsterNamespace.DiscontinuedProduct_Replacement"", ""DiscontinuedProduct"");
  4974. }
  4975. set
  4976. {
  4977. if ((value != null))
  4978. {
  4979. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<DiscontinuedProductMm>(""MonsterNamespace.DiscontinuedProduct_Replacement"", ""DiscontinuedProduct"", value);
  4980. }
  4981. }
  4982. }
  4983. /// <summary>
  4984. /// No Metadata Documentation available.
  4985. /// </summary>
  4986. [XmlIgnoreAttribute()]
  4987. [SoapIgnoreAttribute()]
  4988. [DataMemberAttribute()]
  4989. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_ProductDetail"", ""ProductDetail"")]
  4990. public ProductDetailMm Detail
  4991. {
  4992. get
  4993. {
  4994. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductDetailMm>(""MonsterNamespace.Product_ProductDetail"", ""ProductDetail"").Value;
  4995. }
  4996. set
  4997. {
  4998. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductDetailMm>(""MonsterNamespace.Product_ProductDetail"", ""ProductDetail"").Value = value;
  4999. }
  5000. }
  5001. /// <summary>
  5002. /// No Metadata Documentation available.
  5003. /// </summary>
  5004. [BrowsableAttribute(false)]
  5005. [DataMemberAttribute()]
  5006. public EntityReference<ProductDetailMm> DetailReference
  5007. {
  5008. get
  5009. {
  5010. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductDetailMm>(""MonsterNamespace.Product_ProductDetail"", ""ProductDetail"");
  5011. }
  5012. set
  5013. {
  5014. if ((value != null))
  5015. {
  5016. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductDetailMm>(""MonsterNamespace.Product_ProductDetail"", ""ProductDetail"", value);
  5017. }
  5018. }
  5019. }
  5020. /// <summary>
  5021. /// No Metadata Documentation available.
  5022. /// </summary>
  5023. [XmlIgnoreAttribute()]
  5024. [SoapIgnoreAttribute()]
  5025. [DataMemberAttribute()]
  5026. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_ProductReview"", ""ProductReview"")]
  5027. public EntityCollection<ProductReviewMm> Reviews
  5028. {
  5029. get
  5030. {
  5031. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProductReviewMm>(""MonsterNamespace.Product_ProductReview"", ""ProductReview"");
  5032. }
  5033. set
  5034. {
  5035. if ((value != null))
  5036. {
  5037. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProductReviewMm>(""MonsterNamespace.Product_ProductReview"", ""ProductReview"", value);
  5038. }
  5039. }
  5040. }
  5041. /// <summary>
  5042. /// No Metadata Documentation available.
  5043. /// </summary>
  5044. [XmlIgnoreAttribute()]
  5045. [SoapIgnoreAttribute()]
  5046. [DataMemberAttribute()]
  5047. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_ProductPhoto"", ""ProductPhoto"")]
  5048. public EntityCollection<ProductPhotoMm> Photos
  5049. {
  5050. get
  5051. {
  5052. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProductPhotoMm>(""MonsterNamespace.Product_ProductPhoto"", ""ProductPhoto"");
  5053. }
  5054. set
  5055. {
  5056. if ((value != null))
  5057. {
  5058. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProductPhotoMm>(""MonsterNamespace.Product_ProductPhoto"", ""ProductPhoto"", value);
  5059. }
  5060. }
  5061. }
  5062. /// <summary>
  5063. /// No Metadata Documentation available.
  5064. /// </summary>
  5065. [XmlIgnoreAttribute()]
  5066. [SoapIgnoreAttribute()]
  5067. [DataMemberAttribute()]
  5068. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_Barcodes"", ""Barcodes"")]
  5069. public EntityCollection<BarcodeMm> Barcodes
  5070. {
  5071. get
  5072. {
  5073. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<BarcodeMm>(""MonsterNamespace.Product_Barcodes"", ""Barcodes"");
  5074. }
  5075. set
  5076. {
  5077. if ((value != null))
  5078. {
  5079. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<BarcodeMm>(""MonsterNamespace.Product_Barcodes"", ""Barcodes"", value);
  5080. }
  5081. }
  5082. }
  5083. #endregion
  5084. }
  5085. /// <summary>
  5086. /// No Metadata Documentation available.
  5087. /// </summary>
  5088. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ProductPageViewMm"")]
  5089. [Serializable()]
  5090. [DataContractAttribute(IsReference=true)]
  5091. public partial class ProductPageViewMm : PageViewMm
  5092. {
  5093. #region Factory Method
  5094. /// <summary>
  5095. /// Create a new ProductPageViewMm object.
  5096. /// </summary>
  5097. /// <param name=""pageViewId"">Initial value of the PageViewId property.</param>
  5098. /// <param name=""username"">Initial value of the Username property.</param>
  5099. /// <param name=""viewed"">Initial value of the Viewed property.</param>
  5100. /// <param name=""pageUrl"">Initial value of the PageUrl property.</param>
  5101. /// <param name=""productId"">Initial value of the ProductId property.</param>
  5102. public static ProductPageViewMm CreateProductPageViewMm(global::System.Int32 pageViewId, global::System.String username, global::System.DateTime viewed, global::System.String pageUrl, global::System.Int32 productId)
  5103. {
  5104. ProductPageViewMm productPageViewMm = new ProductPageViewMm();
  5105. productPageViewMm.PageViewId = pageViewId;
  5106. productPageViewMm.Username = username;
  5107. productPageViewMm.Viewed = viewed;
  5108. productPageViewMm.PageUrl = pageUrl;
  5109. productPageViewMm.ProductId = productId;
  5110. return productPageViewMm;
  5111. }
  5112. #endregion
  5113. #region Simple Properties
  5114. /// <summary>
  5115. /// No Metadata Documentation available.
  5116. /// </summary>
  5117. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  5118. [DataMemberAttribute()]
  5119. public global::System.Int32 ProductId
  5120. {
  5121. get
  5122. {
  5123. return _ProductId;
  5124. }
  5125. set
  5126. {
  5127. OnProductIdChanging(value);
  5128. ReportPropertyChanging(""ProductId"");
  5129. _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
  5130. ReportPropertyChanged(""ProductId"");
  5131. OnProductIdChanged();
  5132. }
  5133. }
  5134. private global::System.Int32 _ProductId;
  5135. partial void OnProductIdChanging(global::System.Int32 value);
  5136. partial void OnProductIdChanged();
  5137. #endregion
  5138. #region Navigation Properties
  5139. /// <summary>
  5140. /// No Metadata Documentation available.
  5141. /// </summary>
  5142. [XmlIgnoreAttribute()]
  5143. [SoapIgnoreAttribute()]
  5144. [DataMemberAttribute()]
  5145. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_ProductPageViews"", ""Product"")]
  5146. public ProductMm Product
  5147. {
  5148. get
  5149. {
  5150. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductPageViews"", ""Product"").Value;
  5151. }
  5152. set
  5153. {
  5154. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductPageViews"", ""Product"").Value = value;
  5155. }
  5156. }
  5157. /// <summary>
  5158. /// No Metadata Documentation available.
  5159. /// </summary>
  5160. [BrowsableAttribute(false)]
  5161. [DataMemberAttribute()]
  5162. public EntityReference<ProductMm> ProductReference
  5163. {
  5164. get
  5165. {
  5166. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductPageViews"", ""Product"");
  5167. }
  5168. set
  5169. {
  5170. if ((value != null))
  5171. {
  5172. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductPageViews"", ""Product"", value);
  5173. }
  5174. }
  5175. }
  5176. #endregion
  5177. }
  5178. /// <summary>
  5179. /// No Metadata Documentation available.
  5180. /// </summary>
  5181. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ProductPhotoMm"")]
  5182. [Serializable()]
  5183. [DataContractAttribute(IsReference=true)]
  5184. public partial class ProductPhotoMm : EntityObject
  5185. {
  5186. #region Factory Method
  5187. /// <summary>
  5188. /// Create a new ProductPhotoMm object.
  5189. /// </summary>
  5190. /// <param name=""productId"">Initial value of the ProductId property.</param>
  5191. /// <param name=""photoId"">Initial value of the PhotoId property.</param>
  5192. /// <param name=""photo"">Initial value of the Photo property.</param>
  5193. public static ProductPhotoMm CreateProductPhotoMm(global::System.Int32 productId, global::System.Int32 photoId, global::System.Byte[] photo)
  5194. {
  5195. ProductPhotoMm productPhotoMm = new ProductPhotoMm();
  5196. productPhotoMm.ProductId = productId;
  5197. productPhotoMm.PhotoId = photoId;
  5198. productPhotoMm.Photo = photo;
  5199. return productPhotoMm;
  5200. }
  5201. #endregion
  5202. #region Simple Properties
  5203. /// <summary>
  5204. /// No Metadata Documentation available.
  5205. /// </summary>
  5206. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  5207. [DataMemberAttribute()]
  5208. public global::System.Int32 ProductId
  5209. {
  5210. get
  5211. {
  5212. return _ProductId;
  5213. }
  5214. set
  5215. {
  5216. if (_ProductId != value)
  5217. {
  5218. OnProductIdChanging(value);
  5219. ReportPropertyChanging(""ProductId"");
  5220. _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
  5221. ReportPropertyChanged(""ProductId"");
  5222. OnProductIdChanged();
  5223. }
  5224. }
  5225. }
  5226. private global::System.Int32 _ProductId;
  5227. partial void OnProductIdChanging(global::System.Int32 value);
  5228. partial void OnProductIdChanged();
  5229. /// <summary>
  5230. /// No Metadata Documentation available.
  5231. /// </summary>
  5232. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  5233. [DataMemberAttribute()]
  5234. public global::System.Int32 PhotoId
  5235. {
  5236. get
  5237. {
  5238. return _PhotoId;
  5239. }
  5240. set
  5241. {
  5242. if (_PhotoId != value)
  5243. {
  5244. OnPhotoIdChanging(value);
  5245. ReportPropertyChanging(""PhotoId"");
  5246. _PhotoId = StructuralObject.SetValidValue(value, ""PhotoId"");
  5247. ReportPropertyChanged(""PhotoId"");
  5248. OnPhotoIdChanged();
  5249. }
  5250. }
  5251. }
  5252. private global::System.Int32 _PhotoId;
  5253. partial void OnPhotoIdChanging(global::System.Int32 value);
  5254. partial void OnPhotoIdChanged();
  5255. /// <summary>
  5256. /// No Metadata Documentation available.
  5257. /// </summary>
  5258. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  5259. [DataMemberAttribute()]
  5260. public global::System.Byte[] Photo
  5261. {
  5262. get
  5263. {
  5264. return StructuralObject.GetValidValue(_Photo);
  5265. }
  5266. set
  5267. {
  5268. OnPhotoChanging(value);
  5269. ReportPropertyChanging(""Photo"");
  5270. _Photo = StructuralObject.SetValidValue(value, false, ""Photo"");
  5271. ReportPropertyChanged(""Photo"");
  5272. OnPhotoChanged();
  5273. }
  5274. }
  5275. private global::System.Byte[] _Photo;
  5276. partial void OnPhotoChanging(global::System.Byte[] value);
  5277. partial void OnPhotoChanged();
  5278. #endregion
  5279. #region Navigation Properties
  5280. /// <summary>
  5281. /// No Metadata Documentation available.
  5282. /// </summary>
  5283. [XmlIgnoreAttribute()]
  5284. [SoapIgnoreAttribute()]
  5285. [DataMemberAttribute()]
  5286. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""ProductWebFeature_ProductPhoto"", ""ProductWebFeature"")]
  5287. public EntityCollection<ProductWebFeatureMm> Features
  5288. {
  5289. get
  5290. {
  5291. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProductWebFeatureMm>(""MonsterNamespace.ProductWebFeature_ProductPhoto"", ""ProductWebFeature"");
  5292. }
  5293. set
  5294. {
  5295. if ((value != null))
  5296. {
  5297. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProductWebFeatureMm>(""MonsterNamespace.ProductWebFeature_ProductPhoto"", ""ProductWebFeature"", value);
  5298. }
  5299. }
  5300. }
  5301. #endregion
  5302. }
  5303. /// <summary>
  5304. /// No Metadata Documentation available.
  5305. /// </summary>
  5306. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ProductReviewMm"")]
  5307. [Serializable()]
  5308. [DataContractAttribute(IsReference=true)]
  5309. public partial class ProductReviewMm : EntityObject
  5310. {
  5311. #region Factory Method
  5312. /// <summary>
  5313. /// Create a new ProductReviewMm object.
  5314. /// </summary>
  5315. /// <param name=""productId"">Initial value of the ProductId property.</param>
  5316. /// <param name=""reviewId"">Initial value of the ReviewId property.</param>
  5317. /// <param name=""review"">Initial value of the Review property.</param>
  5318. public static ProductReviewMm CreateProductReviewMm(global::System.Int32 productId, global::System.Int32 reviewId, global::System.String review)
  5319. {
  5320. ProductReviewMm productReviewMm = new ProductReviewMm();
  5321. productReviewMm.ProductId = productId;
  5322. productReviewMm.ReviewId = reviewId;
  5323. productReviewMm.Review = review;
  5324. return productReviewMm;
  5325. }
  5326. #endregion
  5327. #region Simple Properties
  5328. /// <summary>
  5329. /// No Metadata Documentation available.
  5330. /// </summary>
  5331. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  5332. [DataMemberAttribute()]
  5333. public global::System.Int32 ProductId
  5334. {
  5335. get
  5336. {
  5337. return _ProductId;
  5338. }
  5339. set
  5340. {
  5341. if (_ProductId != value)
  5342. {
  5343. OnProductIdChanging(value);
  5344. ReportPropertyChanging(""ProductId"");
  5345. _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
  5346. ReportPropertyChanged(""ProductId"");
  5347. OnProductIdChanged();
  5348. }
  5349. }
  5350. }
  5351. private global::System.Int32 _ProductId;
  5352. partial void OnProductIdChanging(global::System.Int32 value);
  5353. partial void OnProductIdChanged();
  5354. /// <summary>
  5355. /// No Metadata Documentation available.
  5356. /// </summary>
  5357. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  5358. [DataMemberAttribute()]
  5359. public global::System.Int32 ReviewId
  5360. {
  5361. get
  5362. {
  5363. return _ReviewId;
  5364. }
  5365. set
  5366. {
  5367. if (_ReviewId != value)
  5368. {
  5369. OnReviewIdChanging(value);
  5370. ReportPropertyChanging(""ReviewId"");
  5371. _ReviewId = StructuralObject.SetValidValue(value, ""ReviewId"");
  5372. ReportPropertyChanged(""ReviewId"");
  5373. OnReviewIdChanged();
  5374. }
  5375. }
  5376. }
  5377. private global::System.Int32 _ReviewId;
  5378. partial void OnReviewIdChanging(global::System.Int32 value);
  5379. partial void OnReviewIdChanged();
  5380. /// <summary>
  5381. /// No Metadata Documentation available.
  5382. /// </summary>
  5383. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  5384. [DataMemberAttribute()]
  5385. public global::System.String Review
  5386. {
  5387. get
  5388. {
  5389. return _Review;
  5390. }
  5391. set
  5392. {
  5393. OnReviewChanging(value);
  5394. ReportPropertyChanging(""Review"");
  5395. _Review = StructuralObject.SetValidValue(value, false, ""Review"");
  5396. ReportPropertyChanged(""Review"");
  5397. OnReviewChanged();
  5398. }
  5399. }
  5400. private global::System.String _Review;
  5401. partial void OnReviewChanging(global::System.String value);
  5402. partial void OnReviewChanged();
  5403. #endregion
  5404. #region Navigation Properties
  5405. /// <summary>
  5406. /// No Metadata Documentation available.
  5407. /// </summary>
  5408. [XmlIgnoreAttribute()]
  5409. [SoapIgnoreAttribute()]
  5410. [DataMemberAttribute()]
  5411. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_ProductReview"", ""Product"")]
  5412. public ProductMm Product
  5413. {
  5414. get
  5415. {
  5416. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductReview"", ""Product"").Value;
  5417. }
  5418. set
  5419. {
  5420. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductReview"", ""Product"").Value = value;
  5421. }
  5422. }
  5423. /// <summary>
  5424. /// No Metadata Documentation available.
  5425. /// </summary>
  5426. [BrowsableAttribute(false)]
  5427. [DataMemberAttribute()]
  5428. public EntityReference<ProductMm> ProductReference
  5429. {
  5430. get
  5431. {
  5432. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductReview"", ""Product"");
  5433. }
  5434. set
  5435. {
  5436. if ((value != null))
  5437. {
  5438. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductReview"", ""Product"", value);
  5439. }
  5440. }
  5441. }
  5442. /// <summary>
  5443. /// No Metadata Documentation available.
  5444. /// </summary>
  5445. [XmlIgnoreAttribute()]
  5446. [SoapIgnoreAttribute()]
  5447. [DataMemberAttribute()]
  5448. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""ProductWebFeature_ProductReview"", ""ProductWebFeature"")]
  5449. public EntityCollection<ProductWebFeatureMm> Features
  5450. {
  5451. get
  5452. {
  5453. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProductWebFeatureMm>(""MonsterNamespace.ProductWebFeature_ProductReview"", ""ProductWebFeature"");
  5454. }
  5455. set
  5456. {
  5457. if ((value != null))
  5458. {
  5459. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProductWebFeatureMm>(""MonsterNamespace.ProductWebFeature_ProductReview"", ""ProductWebFeature"", value);
  5460. }
  5461. }
  5462. }
  5463. #endregion
  5464. }
  5465. /// <summary>
  5466. /// No Metadata Documentation available.
  5467. /// </summary>
  5468. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ProductWebFeatureMm"")]
  5469. [Serializable()]
  5470. [DataContractAttribute(IsReference=true)]
  5471. public partial class ProductWebFeatureMm : EntityObject
  5472. {
  5473. #region Factory Method
  5474. /// <summary>
  5475. /// Create a new ProductWebFeatureMm object.
  5476. /// </summary>
  5477. /// <param name=""featureId"">Initial value of the FeatureId property.</param>
  5478. /// <param name=""reviewId"">Initial value of the ReviewId property.</param>
  5479. /// <param name=""heading"">Initial value of the Heading property.</param>
  5480. public static ProductWebFeatureMm CreateProductWebFeatureMm(global::System.Int32 featureId, global::System.Int32 reviewId, global::System.String heading)
  5481. {
  5482. ProductWebFeatureMm productWebFeatureMm = new ProductWebFeatureMm();
  5483. productWebFeatureMm.FeatureId = featureId;
  5484. productWebFeatureMm.ReviewId = reviewId;
  5485. productWebFeatureMm.Heading = heading;
  5486. return productWebFeatureMm;
  5487. }
  5488. #endregion
  5489. #region Simple Properties
  5490. /// <summary>
  5491. /// No Metadata Documentation available.
  5492. /// </summary>
  5493. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  5494. [DataMemberAttribute()]
  5495. public global::System.Int32 FeatureId
  5496. {
  5497. get
  5498. {
  5499. return _FeatureId;
  5500. }
  5501. set
  5502. {
  5503. if (_FeatureId != value)
  5504. {
  5505. OnFeatureIdChanging(value);
  5506. ReportPropertyChanging(""FeatureId"");
  5507. _FeatureId = StructuralObject.SetValidValue(value, ""FeatureId"");
  5508. ReportPropertyChanged(""FeatureId"");
  5509. OnFeatureIdChanged();
  5510. }
  5511. }
  5512. }
  5513. private global::System.Int32 _FeatureId;
  5514. partial void OnFeatureIdChanging(global::System.Int32 value);
  5515. partial void OnFeatureIdChanged();
  5516. /// <summary>
  5517. /// No Metadata Documentation available.
  5518. /// </summary>
  5519. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  5520. [DataMemberAttribute()]
  5521. public Nullable<global::System.Int32> ProductId
  5522. {
  5523. get
  5524. {
  5525. return _ProductId;
  5526. }
  5527. set
  5528. {
  5529. OnProductIdChanging(value);
  5530. ReportPropertyChanging(""ProductId"");
  5531. _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
  5532. ReportPropertyChanged(""ProductId"");
  5533. OnProductIdChanged();
  5534. }
  5535. }
  5536. private Nullable<global::System.Int32> _ProductId;
  5537. partial void OnProductIdChanging(Nullable<global::System.Int32> value);
  5538. partial void OnProductIdChanged();
  5539. /// <summary>
  5540. /// No Metadata Documentation available.
  5541. /// </summary>
  5542. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  5543. [DataMemberAttribute()]
  5544. public Nullable<global::System.Int32> PhotoId
  5545. {
  5546. get
  5547. {
  5548. return _PhotoId;
  5549. }
  5550. set
  5551. {
  5552. OnPhotoIdChanging(value);
  5553. ReportPropertyChanging(""PhotoId"");
  5554. _PhotoId = StructuralObject.SetValidValue(value, ""PhotoId"");
  5555. ReportPropertyChanged(""PhotoId"");
  5556. OnPhotoIdChanged();
  5557. }
  5558. }
  5559. private Nullable<global::System.Int32> _PhotoId;
  5560. partial void OnPhotoIdChanging(Nullable<global::System.Int32> value);
  5561. partial void OnPhotoIdChanged();
  5562. /// <summary>
  5563. /// No Metadata Documentation available.
  5564. /// </summary>
  5565. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  5566. [DataMemberAttribute()]
  5567. public global::System.Int32 ReviewId
  5568. {
  5569. get
  5570. {
  5571. return _ReviewId;
  5572. }
  5573. set
  5574. {
  5575. OnReviewIdChanging(value);
  5576. ReportPropertyChanging(""ReviewId"");
  5577. _ReviewId = StructuralObject.SetValidValue(value, ""ReviewId"");
  5578. ReportPropertyChanged(""ReviewId"");
  5579. OnReviewIdChanged();
  5580. }
  5581. }
  5582. private global::System.Int32 _ReviewId;
  5583. partial void OnReviewIdChanging(global::System.Int32 value);
  5584. partial void OnReviewIdChanged();
  5585. /// <summary>
  5586. /// No Metadata Documentation available.
  5587. /// </summary>
  5588. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  5589. [DataMemberAttribute()]
  5590. public global::System.String Heading
  5591. {
  5592. get
  5593. {
  5594. return _Heading;
  5595. }
  5596. set
  5597. {
  5598. OnHeadingChanging(value);
  5599. ReportPropertyChanging(""Heading"");
  5600. _Heading = StructuralObject.SetValidValue(value, false, ""Heading"");
  5601. ReportPropertyChanged(""Heading"");
  5602. OnHeadingChanged();
  5603. }
  5604. }
  5605. private global::System.String _Heading;
  5606. partial void OnHeadingChanging(global::System.String value);
  5607. partial void OnHeadingChanged();
  5608. #endregion
  5609. #region Navigation Properties
  5610. /// <summary>
  5611. /// No Metadata Documentation available.
  5612. /// </summary>
  5613. [XmlIgnoreAttribute()]
  5614. [SoapIgnoreAttribute()]
  5615. [DataMemberAttribute()]
  5616. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""ProductWebFeature_ProductReview"", ""ProductReview"")]
  5617. public ProductReviewMm Review
  5618. {
  5619. get
  5620. {
  5621. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductReviewMm>(""MonsterNamespace.ProductWebFeature_ProductReview"", ""ProductReview"").Value;
  5622. }
  5623. set
  5624. {
  5625. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductReviewMm>(""MonsterNamespace.ProductWebFeature_ProductReview"", ""ProductReview"").Value = value;
  5626. }
  5627. }
  5628. /// <summary>
  5629. /// No Metadata Documentation available.
  5630. /// </summary>
  5631. [BrowsableAttribute(false)]
  5632. [DataMemberAttribute()]
  5633. public EntityReference<ProductReviewMm> ReviewReference
  5634. {
  5635. get
  5636. {
  5637. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductReviewMm>(""MonsterNamespace.ProductWebFeature_ProductReview"", ""ProductReview"");
  5638. }
  5639. set
  5640. {
  5641. if ((value != null))
  5642. {
  5643. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductReviewMm>(""MonsterNamespace.ProductWebFeature_ProductReview"", ""ProductReview"", value);
  5644. }
  5645. }
  5646. }
  5647. /// <summary>
  5648. /// No Metadata Documentation available.
  5649. /// </summary>
  5650. [XmlIgnoreAttribute()]
  5651. [SoapIgnoreAttribute()]
  5652. [DataMemberAttribute()]
  5653. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""ProductWebFeature_ProductPhoto"", ""ProductPhoto"")]
  5654. public ProductPhotoMm Photo
  5655. {
  5656. get
  5657. {
  5658. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductPhotoMm>(""MonsterNamespace.ProductWebFeature_ProductPhoto"", ""ProductPhoto"").Value;
  5659. }
  5660. set
  5661. {
  5662. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductPhotoMm>(""MonsterNamespace.ProductWebFeature_ProductPhoto"", ""ProductPhoto"").Value = value;
  5663. }
  5664. }
  5665. /// <summary>
  5666. /// No Metadata Documentation available.
  5667. /// </summary>
  5668. [BrowsableAttribute(false)]
  5669. [DataMemberAttribute()]
  5670. public EntityReference<ProductPhotoMm> PhotoReference
  5671. {
  5672. get
  5673. {
  5674. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductPhotoMm>(""MonsterNamespace.ProductWebFeature_ProductPhoto"", ""ProductPhoto"");
  5675. }
  5676. set
  5677. {
  5678. if ((value != null))
  5679. {
  5680. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductPhotoMm>(""MonsterNamespace.ProductWebFeature_ProductPhoto"", ""ProductPhoto"", value);
  5681. }
  5682. }
  5683. }
  5684. #endregion
  5685. }
  5686. /// <summary>
  5687. /// No Metadata Documentation available.
  5688. /// </summary>
  5689. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ResolutionMm"")]
  5690. [Serializable()]
  5691. [DataContractAttribute(IsReference=true)]
  5692. public partial class ResolutionMm : EntityObject
  5693. {
  5694. #region Factory Method
  5695. /// <summary>
  5696. /// Create a new ResolutionMm object.
  5697. /// </summary>
  5698. /// <param name=""resolutionId"">Initial value of the ResolutionId property.</param>
  5699. /// <param name=""details"">Initial value of the Details property.</param>
  5700. public static ResolutionMm CreateResolutionMm(global::System.Int32 resolutionId, global::System.String details)
  5701. {
  5702. ResolutionMm resolutionMm = new ResolutionMm();
  5703. resolutionMm.ResolutionId = resolutionId;
  5704. resolutionMm.Details = details;
  5705. return resolutionMm;
  5706. }
  5707. #endregion
  5708. #region Simple Properties
  5709. /// <summary>
  5710. /// No Metadata Documentation available.
  5711. /// </summary>
  5712. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  5713. [DataMemberAttribute()]
  5714. public global::System.Int32 ResolutionId
  5715. {
  5716. get
  5717. {
  5718. return _ResolutionId;
  5719. }
  5720. set
  5721. {
  5722. if (_ResolutionId != value)
  5723. {
  5724. OnResolutionIdChanging(value);
  5725. ReportPropertyChanging(""ResolutionId"");
  5726. _ResolutionId = StructuralObject.SetValidValue(value, ""ResolutionId"");
  5727. ReportPropertyChanged(""ResolutionId"");
  5728. OnResolutionIdChanged();
  5729. }
  5730. }
  5731. }
  5732. private global::System.Int32 _ResolutionId;
  5733. partial void OnResolutionIdChanging(global::System.Int32 value);
  5734. partial void OnResolutionIdChanged();
  5735. /// <summary>
  5736. /// No Metadata Documentation available.
  5737. /// </summary>
  5738. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  5739. [DataMemberAttribute()]
  5740. public global::System.String Details
  5741. {
  5742. get
  5743. {
  5744. return _Details;
  5745. }
  5746. set
  5747. {
  5748. OnDetailsChanging(value);
  5749. ReportPropertyChanging(""Details"");
  5750. _Details = StructuralObject.SetValidValue(value, false, ""Details"");
  5751. ReportPropertyChanged(""Details"");
  5752. OnDetailsChanged();
  5753. }
  5754. }
  5755. private global::System.String _Details;
  5756. partial void OnDetailsChanging(global::System.String value);
  5757. partial void OnDetailsChanged();
  5758. #endregion
  5759. #region Navigation Properties
  5760. /// <summary>
  5761. /// No Metadata Documentation available.
  5762. /// </summary>
  5763. [XmlIgnoreAttribute()]
  5764. [SoapIgnoreAttribute()]
  5765. [DataMemberAttribute()]
  5766. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Complaint_Resolution"", ""Complaint"")]
  5767. public ComplaintMm Complaint
  5768. {
  5769. get
  5770. {
  5771. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComplaintMm>(""MonsterNamespace.Complaint_Resolution"", ""Complaint"").Value;
  5772. }
  5773. set
  5774. {
  5775. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComplaintMm>(""MonsterNamespace.Complaint_Resolution"", ""Complaint"").Value = value;
  5776. }
  5777. }
  5778. /// <summary>
  5779. /// No Metadata Documentation available.
  5780. /// </summary>
  5781. [BrowsableAttribute(false)]
  5782. [DataMemberAttribute()]
  5783. public EntityReference<ComplaintMm> ComplaintReference
  5784. {
  5785. get
  5786. {
  5787. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComplaintMm>(""MonsterNamespace.Complaint_Resolution"", ""Complaint"");
  5788. }
  5789. set
  5790. {
  5791. if ((value != null))
  5792. {
  5793. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ComplaintMm>(""MonsterNamespace.Complaint_Resolution"", ""Complaint"", value);
  5794. }
  5795. }
  5796. }
  5797. #endregion
  5798. }
  5799. /// <summary>
  5800. /// No Metadata Documentation available.
  5801. /// </summary>
  5802. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""RSATokenMm"")]
  5803. [Serializable()]
  5804. [DataContractAttribute(IsReference=true)]
  5805. public partial class RSATokenMm : EntityObject
  5806. {
  5807. #region Factory Method
  5808. /// <summary>
  5809. /// Create a new RSATokenMm object.
  5810. /// </summary>
  5811. /// <param name=""serial"">Initial value of the Serial property.</param>
  5812. /// <param name=""issued"">Initial value of the Issued property.</param>
  5813. public static RSATokenMm CreateRSATokenMm(global::System.String serial, global::System.DateTime issued)
  5814. {
  5815. RSATokenMm rSATokenMm = new RSATokenMm();
  5816. rSATokenMm.Serial = serial;
  5817. rSATokenMm.Issued = issued;
  5818. return rSATokenMm;
  5819. }
  5820. #endregion
  5821. #region Simple Properties
  5822. /// <summary>
  5823. /// No Metadata Documentation available.
  5824. /// </summary>
  5825. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  5826. [DataMemberAttribute()]
  5827. public global::System.String Serial
  5828. {
  5829. get
  5830. {
  5831. return _Serial;
  5832. }
  5833. set
  5834. {
  5835. if (_Serial != value)
  5836. {
  5837. OnSerialChanging(value);
  5838. ReportPropertyChanging(""Serial"");
  5839. _Serial = StructuralObject.SetValidValue(value, false, ""Serial"");
  5840. ReportPropertyChanged(""Serial"");
  5841. OnSerialChanged();
  5842. }
  5843. }
  5844. }
  5845. private global::System.String _Serial;
  5846. partial void OnSerialChanging(global::System.String value);
  5847. partial void OnSerialChanged();
  5848. /// <summary>
  5849. /// No Metadata Documentation available.
  5850. /// </summary>
  5851. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  5852. [DataMemberAttribute()]
  5853. public global::System.DateTime Issued
  5854. {
  5855. get
  5856. {
  5857. return _Issued;
  5858. }
  5859. set
  5860. {
  5861. OnIssuedChanging(value);
  5862. ReportPropertyChanging(""Issued"");
  5863. _Issued = StructuralObject.SetValidValue(value, ""Issued"");
  5864. ReportPropertyChanged(""Issued"");
  5865. OnIssuedChanged();
  5866. }
  5867. }
  5868. private global::System.DateTime _Issued;
  5869. partial void OnIssuedChanging(global::System.DateTime value);
  5870. partial void OnIssuedChanged();
  5871. #endregion
  5872. #region Navigation Properties
  5873. /// <summary>
  5874. /// No Metadata Documentation available.
  5875. /// </summary>
  5876. [XmlIgnoreAttribute()]
  5877. [SoapIgnoreAttribute()]
  5878. [DataMemberAttribute()]
  5879. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_RSAToken"", ""Login"")]
  5880. public LoginMm Login
  5881. {
  5882. get
  5883. {
  5884. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_RSAToken"", ""Login"").Value;
  5885. }
  5886. set
  5887. {
  5888. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_RSAToken"", ""Login"").Value = value;
  5889. }
  5890. }
  5891. /// <summary>
  5892. /// No Metadata Documentation available.
  5893. /// </summary>
  5894. [BrowsableAttribute(false)]
  5895. [DataMemberAttribute()]
  5896. public EntityReference<LoginMm> LoginReference
  5897. {
  5898. get
  5899. {
  5900. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_RSAToken"", ""Login"");
  5901. }
  5902. set
  5903. {
  5904. if ((value != null))
  5905. {
  5906. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_RSAToken"", ""Login"", value);
  5907. }
  5908. }
  5909. }
  5910. #endregion
  5911. }
  5912. /// <summary>
  5913. /// No Metadata Documentation available.
  5914. /// </summary>
  5915. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""SmartCardMm"")]
  5916. [Serializable()]
  5917. [DataContractAttribute(IsReference=true)]
  5918. public partial class SmartCardMm : EntityObject
  5919. {
  5920. #region Factory Method
  5921. /// <summary>
  5922. /// Create a new SmartCardMm object.
  5923. /// </summary>
  5924. /// <param name=""username"">Initial value of the Username property.</param>
  5925. /// <param name=""cardSerial"">Initial value of the CardSerial property.</param>
  5926. /// <param name=""issued"">Initial value of the Issued property.</param>
  5927. public static SmartCardMm CreateSmartCardMm(global::System.String username, global::System.String cardSerial, global::System.DateTime issued)
  5928. {
  5929. SmartCardMm smartCardMm = new SmartCardMm();
  5930. smartCardMm.Username = username;
  5931. smartCardMm.CardSerial = cardSerial;
  5932. smartCardMm.Issued = issued;
  5933. return smartCardMm;
  5934. }
  5935. #endregion
  5936. #region Simple Properties
  5937. /// <summary>
  5938. /// No Metadata Documentation available.
  5939. /// </summary>
  5940. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  5941. [DataMemberAttribute()]
  5942. public global::System.String Username
  5943. {
  5944. get
  5945. {
  5946. return _Username;
  5947. }
  5948. set
  5949. {
  5950. if (_Username != value)
  5951. {
  5952. OnUsernameChanging(value);
  5953. ReportPropertyChanging(""Username"");
  5954. _Username = StructuralObject.SetValidValue(value, false, ""Username"");
  5955. ReportPropertyChanged(""Username"");
  5956. OnUsernameChanged();
  5957. }
  5958. }
  5959. }
  5960. private global::System.String _Username;
  5961. partial void OnUsernameChanging(global::System.String value);
  5962. partial void OnUsernameChanged();
  5963. /// <summary>
  5964. /// No Metadata Documentation available.
  5965. /// </summary>
  5966. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  5967. [DataMemberAttribute()]
  5968. public global::System.String CardSerial
  5969. {
  5970. get
  5971. {
  5972. return _CardSerial;
  5973. }
  5974. set
  5975. {
  5976. OnCardSerialChanging(value);
  5977. ReportPropertyChanging(""CardSerial"");
  5978. _CardSerial = StructuralObject.SetValidValue(value, false, ""CardSerial"");
  5979. ReportPropertyChanged(""CardSerial"");
  5980. OnCardSerialChanged();
  5981. }
  5982. }
  5983. private global::System.String _CardSerial;
  5984. partial void OnCardSerialChanging(global::System.String value);
  5985. partial void OnCardSerialChanged();
  5986. /// <summary>
  5987. /// No Metadata Documentation available.
  5988. /// </summary>
  5989. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  5990. [DataMemberAttribute()]
  5991. public global::System.DateTime Issued
  5992. {
  5993. get
  5994. {
  5995. return _Issued;
  5996. }
  5997. set
  5998. {
  5999. OnIssuedChanging(value);
  6000. ReportPropertyChanging(""Issued"");
  6001. _Issued = StructuralObject.SetValidValue(value, ""Issued"");
  6002. ReportPropertyChanged(""Issued"");
  6003. OnIssuedChanged();
  6004. }
  6005. }
  6006. private global::System.DateTime _Issued;
  6007. partial void OnIssuedChanging(global::System.DateTime value);
  6008. partial void OnIssuedChanged();
  6009. #endregion
  6010. #region Navigation Properties
  6011. /// <summary>
  6012. /// No Metadata Documentation available.
  6013. /// </summary>
  6014. [XmlIgnoreAttribute()]
  6015. [SoapIgnoreAttribute()]
  6016. [DataMemberAttribute()]
  6017. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_SmartCard"", ""Login"")]
  6018. public LoginMm Login
  6019. {
  6020. get
  6021. {
  6022. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_SmartCard"", ""Login"").Value;
  6023. }
  6024. set
  6025. {
  6026. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_SmartCard"", ""Login"").Value = value;
  6027. }
  6028. }
  6029. /// <summary>
  6030. /// No Metadata Documentation available.
  6031. /// </summary>
  6032. [BrowsableAttribute(false)]
  6033. [DataMemberAttribute()]
  6034. public EntityReference<LoginMm> LoginReference
  6035. {
  6036. get
  6037. {
  6038. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_SmartCard"", ""Login"");
  6039. }
  6040. set
  6041. {
  6042. if ((value != null))
  6043. {
  6044. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_SmartCard"", ""Login"", value);
  6045. }
  6046. }
  6047. }
  6048. /// <summary>
  6049. /// No Metadata Documentation available.
  6050. /// </summary>
  6051. [XmlIgnoreAttribute()]
  6052. [SoapIgnoreAttribute()]
  6053. [DataMemberAttribute()]
  6054. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""LastLogin_SmartCard"", ""LastLogin"")]
  6055. public LastLoginMm LastLogin
  6056. {
  6057. get
  6058. {
  6059. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LastLoginMm>(""MonsterNamespace.LastLogin_SmartCard"", ""LastLogin"").Value;
  6060. }
  6061. set
  6062. {
  6063. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LastLoginMm>(""MonsterNamespace.LastLogin_SmartCard"", ""LastLogin"").Value = value;
  6064. }
  6065. }
  6066. /// <summary>
  6067. /// No Metadata Documentation available.
  6068. /// </summary>
  6069. [BrowsableAttribute(false)]
  6070. [DataMemberAttribute()]
  6071. public EntityReference<LastLoginMm> LastLoginReference
  6072. {
  6073. get
  6074. {
  6075. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LastLoginMm>(""MonsterNamespace.LastLogin_SmartCard"", ""LastLogin"");
  6076. }
  6077. set
  6078. {
  6079. if ((value != null))
  6080. {
  6081. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LastLoginMm>(""MonsterNamespace.LastLogin_SmartCard"", ""LastLogin"", value);
  6082. }
  6083. }
  6084. }
  6085. #endregion
  6086. }
  6087. /// <summary>
  6088. /// No Metadata Documentation available.
  6089. /// </summary>
  6090. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""SupplierInfoMm"")]
  6091. [Serializable()]
  6092. [DataContractAttribute(IsReference=true)]
  6093. public partial class SupplierInfoMm : EntityObject
  6094. {
  6095. #region Factory Method
  6096. /// <summary>
  6097. /// Create a new SupplierInfoMm object.
  6098. /// </summary>
  6099. /// <param name=""supplierInfoId"">Initial value of the SupplierInfoId property.</param>
  6100. /// <param name=""information"">Initial value of the Information property.</param>
  6101. public static SupplierInfoMm CreateSupplierInfoMm(global::System.Int32 supplierInfoId, global::System.String information)
  6102. {
  6103. SupplierInfoMm supplierInfoMm = new SupplierInfoMm();
  6104. supplierInfoMm.SupplierInfoId = supplierInfoId;
  6105. supplierInfoMm.Information = information;
  6106. return supplierInfoMm;
  6107. }
  6108. #endregion
  6109. #region Simple Properties
  6110. /// <summary>
  6111. /// No Metadata Documentation available.
  6112. /// </summary>
  6113. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  6114. [DataMemberAttribute()]
  6115. public global::System.Int32 SupplierInfoId
  6116. {
  6117. get
  6118. {
  6119. return _SupplierInfoId;
  6120. }
  6121. set
  6122. {
  6123. if (_SupplierInfoId != value)
  6124. {
  6125. OnSupplierInfoIdChanging(value);
  6126. ReportPropertyChanging(""SupplierInfoId"");
  6127. _SupplierInfoId = StructuralObject.SetValidValue(value, ""SupplierInfoId"");
  6128. ReportPropertyChanged(""SupplierInfoId"");
  6129. OnSupplierInfoIdChanged();
  6130. }
  6131. }
  6132. }
  6133. private global::System.Int32 _SupplierInfoId;
  6134. partial void OnSupplierInfoIdChanging(global::System.Int32 value);
  6135. partial void OnSupplierInfoIdChanged();
  6136. /// <summary>
  6137. /// No Metadata Documentation available.
  6138. /// </summary>
  6139. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6140. [DataMemberAttribute()]
  6141. public global::System.String Information
  6142. {
  6143. get
  6144. {
  6145. return _Information;
  6146. }
  6147. set
  6148. {
  6149. OnInformationChanging(value);
  6150. ReportPropertyChanging(""Information"");
  6151. _Information = StructuralObject.SetValidValue(value, false, ""Information"");
  6152. ReportPropertyChanged(""Information"");
  6153. OnInformationChanged();
  6154. }
  6155. }
  6156. private global::System.String _Information;
  6157. partial void OnInformationChanging(global::System.String value);
  6158. partial void OnInformationChanged();
  6159. #endregion
  6160. #region Navigation Properties
  6161. /// <summary>
  6162. /// No Metadata Documentation available.
  6163. /// </summary>
  6164. [XmlIgnoreAttribute()]
  6165. [SoapIgnoreAttribute()]
  6166. [DataMemberAttribute()]
  6167. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Supplier_SupplierInfo"", ""Supplier"")]
  6168. public SupplierMm Supplier
  6169. {
  6170. get
  6171. {
  6172. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_SupplierInfo"", ""Supplier"").Value;
  6173. }
  6174. set
  6175. {
  6176. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_SupplierInfo"", ""Supplier"").Value = value;
  6177. }
  6178. }
  6179. /// <summary>
  6180. /// No Metadata Documentation available.
  6181. /// </summary>
  6182. [BrowsableAttribute(false)]
  6183. [DataMemberAttribute()]
  6184. public EntityReference<SupplierMm> SupplierReference
  6185. {
  6186. get
  6187. {
  6188. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_SupplierInfo"", ""Supplier"");
  6189. }
  6190. set
  6191. {
  6192. if ((value != null))
  6193. {
  6194. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_SupplierInfo"", ""Supplier"", value);
  6195. }
  6196. }
  6197. }
  6198. #endregion
  6199. }
  6200. /// <summary>
  6201. /// No Metadata Documentation available.
  6202. /// </summary>
  6203. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""SupplierLogoMm"")]
  6204. [Serializable()]
  6205. [DataContractAttribute(IsReference=true)]
  6206. public partial class SupplierLogoMm : EntityObject
  6207. {
  6208. #region Factory Method
  6209. /// <summary>
  6210. /// Create a new SupplierLogoMm object.
  6211. /// </summary>
  6212. /// <param name=""supplierId"">Initial value of the SupplierId property.</param>
  6213. /// <param name=""logo"">Initial value of the Logo property.</param>
  6214. public static SupplierLogoMm CreateSupplierLogoMm(global::System.Int32 supplierId, global::System.Byte[] logo)
  6215. {
  6216. SupplierLogoMm supplierLogoMm = new SupplierLogoMm();
  6217. supplierLogoMm.SupplierId = supplierId;
  6218. supplierLogoMm.Logo = logo;
  6219. return supplierLogoMm;
  6220. }
  6221. #endregion
  6222. #region Simple Properties
  6223. /// <summary>
  6224. /// No Metadata Documentation available.
  6225. /// </summary>
  6226. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  6227. [DataMemberAttribute()]
  6228. public global::System.Int32 SupplierId
  6229. {
  6230. get
  6231. {
  6232. return _SupplierId;
  6233. }
  6234. set
  6235. {
  6236. if (_SupplierId != value)
  6237. {
  6238. OnSupplierIdChanging(value);
  6239. ReportPropertyChanging(""SupplierId"");
  6240. _SupplierId = StructuralObject.SetValidValue(value, ""SupplierId"");
  6241. ReportPropertyChanged(""SupplierId"");
  6242. OnSupplierIdChanged();
  6243. }
  6244. }
  6245. }
  6246. private global::System.Int32 _SupplierId;
  6247. partial void OnSupplierIdChanging(global::System.Int32 value);
  6248. partial void OnSupplierIdChanged();
  6249. /// <summary>
  6250. /// No Metadata Documentation available.
  6251. /// </summary>
  6252. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6253. [DataMemberAttribute()]
  6254. public global::System.Byte[] Logo
  6255. {
  6256. get
  6257. {
  6258. return StructuralObject.GetValidValue(_Logo);
  6259. }
  6260. set
  6261. {
  6262. OnLogoChanging(value);
  6263. ReportPropertyChanging(""Logo"");
  6264. _Logo = StructuralObject.SetValidValue(value, false, ""Logo"");
  6265. ReportPropertyChanged(""Logo"");
  6266. OnLogoChanged();
  6267. }
  6268. }
  6269. private global::System.Byte[] _Logo;
  6270. partial void OnLogoChanging(global::System.Byte[] value);
  6271. partial void OnLogoChanged();
  6272. #endregion
  6273. }
  6274. /// <summary>
  6275. /// No Metadata Documentation available.
  6276. /// </summary>
  6277. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""SupplierMm"")]
  6278. [Serializable()]
  6279. [DataContractAttribute(IsReference=true)]
  6280. public partial class SupplierMm : EntityObject
  6281. {
  6282. #region Factory Method
  6283. /// <summary>
  6284. /// Create a new SupplierMm object.
  6285. /// </summary>
  6286. /// <param name=""supplierId"">Initial value of the SupplierId property.</param>
  6287. /// <param name=""name"">Initial value of the Name property.</param>
  6288. public static SupplierMm CreateSupplierMm(global::System.Int32 supplierId, global::System.String name)
  6289. {
  6290. SupplierMm supplierMm = new SupplierMm();
  6291. supplierMm.SupplierId = supplierId;
  6292. supplierMm.Name = name;
  6293. return supplierMm;
  6294. }
  6295. #endregion
  6296. #region Simple Properties
  6297. /// <summary>
  6298. /// No Metadata Documentation available.
  6299. /// </summary>
  6300. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  6301. [DataMemberAttribute()]
  6302. public global::System.Int32 SupplierId
  6303. {
  6304. get
  6305. {
  6306. return _SupplierId;
  6307. }
  6308. set
  6309. {
  6310. if (_SupplierId != value)
  6311. {
  6312. OnSupplierIdChanging(value);
  6313. ReportPropertyChanging(""SupplierId"");
  6314. _SupplierId = StructuralObject.SetValidValue(value, ""SupplierId"");
  6315. ReportPropertyChanged(""SupplierId"");
  6316. OnSupplierIdChanged();
  6317. }
  6318. }
  6319. }
  6320. private global::System.Int32 _SupplierId;
  6321. partial void OnSupplierIdChanging(global::System.Int32 value);
  6322. partial void OnSupplierIdChanged();
  6323. /// <summary>
  6324. /// No Metadata Documentation available.
  6325. /// </summary>
  6326. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6327. [DataMemberAttribute()]
  6328. public global::System.String Name
  6329. {
  6330. get
  6331. {
  6332. return _Name;
  6333. }
  6334. set
  6335. {
  6336. OnNameChanging(value);
  6337. ReportPropertyChanging(""Name"");
  6338. _Name = StructuralObject.SetValidValue(value, false, ""Name"");
  6339. ReportPropertyChanged(""Name"");
  6340. OnNameChanged();
  6341. }
  6342. }
  6343. private global::System.String _Name;
  6344. partial void OnNameChanging(global::System.String value);
  6345. partial void OnNameChanged();
  6346. #endregion
  6347. #region Navigation Properties
  6348. /// <summary>
  6349. /// No Metadata Documentation available.
  6350. /// </summary>
  6351. [XmlIgnoreAttribute()]
  6352. [SoapIgnoreAttribute()]
  6353. [DataMemberAttribute()]
  6354. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Products_Suppliers"", ""Products"")]
  6355. public EntityCollection<ProductMm> Products
  6356. {
  6357. get
  6358. {
  6359. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProductMm>(""MonsterNamespace.Products_Suppliers"", ""Products"");
  6360. }
  6361. set
  6362. {
  6363. if ((value != null))
  6364. {
  6365. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProductMm>(""MonsterNamespace.Products_Suppliers"", ""Products"", value);
  6366. }
  6367. }
  6368. }
  6369. /// <summary>
  6370. /// No Metadata Documentation available.
  6371. /// </summary>
  6372. [XmlIgnoreAttribute()]
  6373. [SoapIgnoreAttribute()]
  6374. [DataMemberAttribute()]
  6375. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Supplier_BackOrderLines"", ""BackOrderLines"")]
  6376. public EntityCollection<BackOrderLineMm> BackOrderLines
  6377. {
  6378. get
  6379. {
  6380. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<BackOrderLineMm>(""MonsterNamespace.Supplier_BackOrderLines"", ""BackOrderLines"");
  6381. }
  6382. set
  6383. {
  6384. if ((value != null))
  6385. {
  6386. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<BackOrderLineMm>(""MonsterNamespace.Supplier_BackOrderLines"", ""BackOrderLines"", value);
  6387. }
  6388. }
  6389. }
  6390. /// <summary>
  6391. /// No Metadata Documentation available.
  6392. /// </summary>
  6393. [XmlIgnoreAttribute()]
  6394. [SoapIgnoreAttribute()]
  6395. [DataMemberAttribute()]
  6396. [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Supplier_SupplierLogo"", ""Logo"")]
  6397. public SupplierLogoMm Logo
  6398. {
  6399. get
  6400. {
  6401. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierLogoMm>(""MonsterNamespace.Supplier_SupplierLogo"", ""Logo"").Value;
  6402. }
  6403. set
  6404. {
  6405. ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierLogoMm>(""MonsterNamespace.Supplier_SupplierLogo"", ""Logo"").Value = value;
  6406. }
  6407. }
  6408. /// <summary>
  6409. /// No Metadata Documentation available.
  6410. /// </summary>
  6411. [BrowsableAttribute(false)]
  6412. [DataMemberAttribute()]
  6413. public EntityReference<SupplierLogoMm> LogoReference
  6414. {
  6415. get
  6416. {
  6417. return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierLogoMm>(""MonsterNamespace.Supplier_SupplierLogo"", ""Logo"");
  6418. }
  6419. set
  6420. {
  6421. if ((value != null))
  6422. {
  6423. ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SupplierLogoMm>(""MonsterNamespace.Supplier_SupplierLogo"", ""Logo"", value);
  6424. }
  6425. }
  6426. }
  6427. #endregion
  6428. }
  6429. /// <summary>
  6430. /// No Metadata Documentation available.
  6431. /// </summary>
  6432. [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""SuspiciousActivityMm"")]
  6433. [Serializable()]
  6434. [DataContractAttribute(IsReference=true)]
  6435. public partial class SuspiciousActivityMm : EntityObject
  6436. {
  6437. #region Factory Method
  6438. /// <summary>
  6439. /// Create a new SuspiciousActivityMm object.
  6440. /// </summary>
  6441. /// <param name=""suspiciousActivityId"">Initial value of the SuspiciousActivityId property.</param>
  6442. /// <param name=""activity"">Initial value of the Activity property.</param>
  6443. public static SuspiciousActivityMm CreateSuspiciousActivityMm(global::System.Int32 suspiciousActivityId, global::System.String activity)
  6444. {
  6445. SuspiciousActivityMm suspiciousActivityMm = new SuspiciousActivityMm();
  6446. suspiciousActivityMm.SuspiciousActivityId = suspiciousActivityId;
  6447. suspiciousActivityMm.Activity = activity;
  6448. return suspiciousActivityMm;
  6449. }
  6450. #endregion
  6451. #region Simple Properties
  6452. /// <summary>
  6453. /// No Metadata Documentation available.
  6454. /// </summary>
  6455. [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
  6456. [DataMemberAttribute()]
  6457. public global::System.Int32 SuspiciousActivityId
  6458. {
  6459. get
  6460. {
  6461. return _SuspiciousActivityId;
  6462. }
  6463. set
  6464. {
  6465. if (_SuspiciousActivityId != value)
  6466. {
  6467. OnSuspiciousActivityIdChanging(value);
  6468. ReportPropertyChanging(""SuspiciousActivityId"");
  6469. _SuspiciousActivityId = StructuralObject.SetValidValue(value, ""SuspiciousActivityId"");
  6470. ReportPropertyChanged(""SuspiciousActivityId"");
  6471. OnSuspiciousActivityIdChanged();
  6472. }
  6473. }
  6474. }
  6475. private global::System.Int32 _SuspiciousActivityId;
  6476. partial void OnSuspiciousActivityIdChanging(global::System.Int32 value);
  6477. partial void OnSuspiciousActivityIdChanged();
  6478. /// <summary>
  6479. /// No Metadata Documentation available.
  6480. /// </summary>
  6481. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6482. [DataMemberAttribute()]
  6483. public global::System.String Activity
  6484. {
  6485. get
  6486. {
  6487. return _Activity;
  6488. }
  6489. set
  6490. {
  6491. OnActivityChanging(value);
  6492. ReportPropertyChanging(""Activity"");
  6493. _Activity = StructuralObject.SetValidValue(value, false, ""Activity"");
  6494. ReportPropertyChanged(""Activity"");
  6495. OnActivityChanged();
  6496. }
  6497. }
  6498. private global::System.String _Activity;
  6499. partial void OnActivityChanging(global::System.String value);
  6500. partial void OnActivityChanged();
  6501. #endregion
  6502. }
  6503. #endregion
  6504. #region ComplexTypes
  6505. /// <summary>
  6506. /// No Metadata Documentation available.
  6507. /// </summary>
  6508. [EdmComplexTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""AuditInfoMm"")]
  6509. [DataContractAttribute(IsReference=true)]
  6510. [Serializable()]
  6511. public partial class AuditInfoMm : ComplexObject
  6512. {
  6513. #region Factory Method
  6514. /// <summary>
  6515. /// Create a new AuditInfoMm object.
  6516. /// </summary>
  6517. /// <param name=""modifiedDate"">Initial value of the ModifiedDate property.</param>
  6518. /// <param name=""modifiedBy"">Initial value of the ModifiedBy property.</param>
  6519. /// <param name=""concurrency"">Initial value of the Concurrency property.</param>
  6520. public static AuditInfoMm CreateAuditInfoMm(global::System.DateTime modifiedDate, global::System.String modifiedBy, ConcurrencyInfoMm concurrency)
  6521. {
  6522. AuditInfoMm auditInfoMm = new AuditInfoMm();
  6523. auditInfoMm.ModifiedDate = modifiedDate;
  6524. auditInfoMm.ModifiedBy = modifiedBy;
  6525. auditInfoMm.Concurrency = StructuralObject.VerifyComplexObjectIsNotNull(concurrency, ""Concurrency"");
  6526. return auditInfoMm;
  6527. }
  6528. #endregion
  6529. #region Simple Properties
  6530. /// <summary>
  6531. /// No Metadata Documentation available.
  6532. /// </summary>
  6533. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6534. [DataMemberAttribute()]
  6535. public global::System.DateTime ModifiedDate
  6536. {
  6537. get
  6538. {
  6539. return _ModifiedDate;
  6540. }
  6541. set
  6542. {
  6543. OnModifiedDateChanging(value);
  6544. ReportPropertyChanging(""ModifiedDate"");
  6545. _ModifiedDate = StructuralObject.SetValidValue(value, ""ModifiedDate"");
  6546. ReportPropertyChanged(""ModifiedDate"");
  6547. OnModifiedDateChanged();
  6548. }
  6549. }
  6550. private global::System.DateTime _ModifiedDate;
  6551. partial void OnModifiedDateChanging(global::System.DateTime value);
  6552. partial void OnModifiedDateChanged();
  6553. /// <summary>
  6554. /// No Metadata Documentation available.
  6555. /// </summary>
  6556. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6557. [DataMemberAttribute()]
  6558. public global::System.String ModifiedBy
  6559. {
  6560. get
  6561. {
  6562. return _ModifiedBy;
  6563. }
  6564. set
  6565. {
  6566. OnModifiedByChanging(value);
  6567. ReportPropertyChanging(""ModifiedBy"");
  6568. _ModifiedBy = StructuralObject.SetValidValue(value, false, ""ModifiedBy"");
  6569. ReportPropertyChanged(""ModifiedBy"");
  6570. OnModifiedByChanged();
  6571. }
  6572. }
  6573. private global::System.String _ModifiedBy;
  6574. partial void OnModifiedByChanging(global::System.String value);
  6575. partial void OnModifiedByChanged();
  6576. #endregion
  6577. #region Complex Properties
  6578. /// <summary>
  6579. /// No Metadata Documentation available.
  6580. /// </summary>
  6581. [EdmComplexPropertyAttribute()]
  6582. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  6583. [XmlElement(IsNullable=true)]
  6584. [SoapElement(IsNullable=true)]
  6585. [DataMemberAttribute()]
  6586. public ConcurrencyInfoMm Concurrency
  6587. {
  6588. get
  6589. {
  6590. _Concurrency = GetValidValue(_Concurrency, ""Concurrency"", false, _ConcurrencyInitialized);
  6591. _ConcurrencyInitialized = true;
  6592. return _Concurrency;
  6593. }
  6594. set
  6595. {
  6596. OnConcurrencyChanging(value);
  6597. ReportPropertyChanging(""Concurrency"");
  6598. _Concurrency = SetValidValue(_Concurrency, value, ""Concurrency"");
  6599. _ConcurrencyInitialized = true;
  6600. ReportPropertyChanged(""Concurrency"");
  6601. OnConcurrencyChanged();
  6602. }
  6603. }
  6604. private ConcurrencyInfoMm _Concurrency;
  6605. private bool _ConcurrencyInitialized;
  6606. partial void OnConcurrencyChanging(ConcurrencyInfoMm value);
  6607. partial void OnConcurrencyChanged();
  6608. #endregion
  6609. }
  6610. /// <summary>
  6611. /// No Metadata Documentation available.
  6612. /// </summary>
  6613. [EdmComplexTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ConcurrencyInfoMm"")]
  6614. [DataContractAttribute(IsReference=true)]
  6615. [Serializable()]
  6616. public partial class ConcurrencyInfoMm : ComplexObject
  6617. {
  6618. #region Factory Method
  6619. /// <summary>
  6620. /// Create a new ConcurrencyInfoMm object.
  6621. /// </summary>
  6622. /// <param name=""token"">Initial value of the Token property.</param>
  6623. public static ConcurrencyInfoMm CreateConcurrencyInfoMm(global::System.String token)
  6624. {
  6625. ConcurrencyInfoMm concurrencyInfoMm = new ConcurrencyInfoMm();
  6626. concurrencyInfoMm.Token = token;
  6627. return concurrencyInfoMm;
  6628. }
  6629. #endregion
  6630. #region Simple Properties
  6631. /// <summary>
  6632. /// No Metadata Documentation available.
  6633. /// </summary>
  6634. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6635. [DataMemberAttribute()]
  6636. public global::System.String Token
  6637. {
  6638. get
  6639. {
  6640. return _Token;
  6641. }
  6642. set
  6643. {
  6644. OnTokenChanging(value);
  6645. ReportPropertyChanging(""Token"");
  6646. _Token = StructuralObject.SetValidValue(value, false, ""Token"");
  6647. ReportPropertyChanged(""Token"");
  6648. OnTokenChanged();
  6649. }
  6650. }
  6651. private global::System.String _Token;
  6652. partial void OnTokenChanging(global::System.String value);
  6653. partial void OnTokenChanged();
  6654. /// <summary>
  6655. /// No Metadata Documentation available.
  6656. /// </summary>
  6657. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  6658. [DataMemberAttribute()]
  6659. public Nullable<global::System.DateTime> QueriedDateTime
  6660. {
  6661. get
  6662. {
  6663. return _QueriedDateTime;
  6664. }
  6665. set
  6666. {
  6667. OnQueriedDateTimeChanging(value);
  6668. ReportPropertyChanging(""QueriedDateTime"");
  6669. _QueriedDateTime = StructuralObject.SetValidValue(value, ""QueriedDateTime"");
  6670. ReportPropertyChanged(""QueriedDateTime"");
  6671. OnQueriedDateTimeChanged();
  6672. }
  6673. }
  6674. private Nullable<global::System.DateTime> _QueriedDateTime;
  6675. partial void OnQueriedDateTimeChanging(Nullable<global::System.DateTime> value);
  6676. partial void OnQueriedDateTimeChanged();
  6677. #endregion
  6678. }
  6679. /// <summary>
  6680. /// No Metadata Documentation available.
  6681. /// </summary>
  6682. [EdmComplexTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ContactDetailsMm"")]
  6683. [DataContractAttribute(IsReference=true)]
  6684. [Serializable()]
  6685. public partial class ContactDetailsMm : ComplexObject
  6686. {
  6687. #region Factory Method
  6688. /// <summary>
  6689. /// Create a new ContactDetailsMm object.
  6690. /// </summary>
  6691. /// <param name=""email"">Initial value of the Email property.</param>
  6692. /// <param name=""homePhone"">Initial value of the HomePhone property.</param>
  6693. /// <param name=""workPhone"">Initial value of the WorkPhone property.</param>
  6694. /// <param name=""mobilePhone"">Initial value of the MobilePhone property.</param>
  6695. public static ContactDetailsMm CreateContactDetailsMm(global::System.String email, PhoneMm homePhone, PhoneMm workPhone, PhoneMm mobilePhone)
  6696. {
  6697. ContactDetailsMm contactDetailsMm = new ContactDetailsMm();
  6698. contactDetailsMm.Email = email;
  6699. contactDetailsMm.HomePhone = StructuralObject.VerifyComplexObjectIsNotNull(homePhone, ""HomePhone"");
  6700. contactDetailsMm.WorkPhone = StructuralObject.VerifyComplexObjectIsNotNull(workPhone, ""WorkPhone"");
  6701. contactDetailsMm.MobilePhone = StructuralObject.VerifyComplexObjectIsNotNull(mobilePhone, ""MobilePhone"");
  6702. return contactDetailsMm;
  6703. }
  6704. #endregion
  6705. #region Simple Properties
  6706. /// <summary>
  6707. /// No Metadata Documentation available.
  6708. /// </summary>
  6709. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6710. [DataMemberAttribute()]
  6711. public global::System.String Email
  6712. {
  6713. get
  6714. {
  6715. return _Email;
  6716. }
  6717. set
  6718. {
  6719. OnEmailChanging(value);
  6720. ReportPropertyChanging(""Email"");
  6721. _Email = StructuralObject.SetValidValue(value, false, ""Email"");
  6722. ReportPropertyChanged(""Email"");
  6723. OnEmailChanged();
  6724. }
  6725. }
  6726. private global::System.String _Email;
  6727. partial void OnEmailChanging(global::System.String value);
  6728. partial void OnEmailChanged();
  6729. #endregion
  6730. #region Complex Properties
  6731. /// <summary>
  6732. /// No Metadata Documentation available.
  6733. /// </summary>
  6734. [EdmComplexPropertyAttribute()]
  6735. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  6736. [XmlElement(IsNullable=true)]
  6737. [SoapElement(IsNullable=true)]
  6738. [DataMemberAttribute()]
  6739. public PhoneMm HomePhone
  6740. {
  6741. get
  6742. {
  6743. _HomePhone = GetValidValue(_HomePhone, ""HomePhone"", false, _HomePhoneInitialized);
  6744. _HomePhoneInitialized = true;
  6745. return _HomePhone;
  6746. }
  6747. set
  6748. {
  6749. OnHomePhoneChanging(value);
  6750. ReportPropertyChanging(""HomePhone"");
  6751. _HomePhone = SetValidValue(_HomePhone, value, ""HomePhone"");
  6752. _HomePhoneInitialized = true;
  6753. ReportPropertyChanged(""HomePhone"");
  6754. OnHomePhoneChanged();
  6755. }
  6756. }
  6757. private PhoneMm _HomePhone;
  6758. private bool _HomePhoneInitialized;
  6759. partial void OnHomePhoneChanging(PhoneMm value);
  6760. partial void OnHomePhoneChanged();
  6761. /// <summary>
  6762. /// No Metadata Documentation available.
  6763. /// </summary>
  6764. [EdmComplexPropertyAttribute()]
  6765. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  6766. [XmlElement(IsNullable=true)]
  6767. [SoapElement(IsNullable=true)]
  6768. [DataMemberAttribute()]
  6769. public PhoneMm WorkPhone
  6770. {
  6771. get
  6772. {
  6773. _WorkPhone = GetValidValue(_WorkPhone, ""WorkPhone"", false, _WorkPhoneInitialized);
  6774. _WorkPhoneInitialized = true;
  6775. return _WorkPhone;
  6776. }
  6777. set
  6778. {
  6779. OnWorkPhoneChanging(value);
  6780. ReportPropertyChanging(""WorkPhone"");
  6781. _WorkPhone = SetValidValue(_WorkPhone, value, ""WorkPhone"");
  6782. _WorkPhoneInitialized = true;
  6783. ReportPropertyChanged(""WorkPhone"");
  6784. OnWorkPhoneChanged();
  6785. }
  6786. }
  6787. private PhoneMm _WorkPhone;
  6788. private bool _WorkPhoneInitialized;
  6789. partial void OnWorkPhoneChanging(PhoneMm value);
  6790. partial void OnWorkPhoneChanged();
  6791. /// <summary>
  6792. /// No Metadata Documentation available.
  6793. /// </summary>
  6794. [EdmComplexPropertyAttribute()]
  6795. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  6796. [XmlElement(IsNullable=true)]
  6797. [SoapElement(IsNullable=true)]
  6798. [DataMemberAttribute()]
  6799. public PhoneMm MobilePhone
  6800. {
  6801. get
  6802. {
  6803. _MobilePhone = GetValidValue(_MobilePhone, ""MobilePhone"", false, _MobilePhoneInitialized);
  6804. _MobilePhoneInitialized = true;
  6805. return _MobilePhone;
  6806. }
  6807. set
  6808. {
  6809. OnMobilePhoneChanging(value);
  6810. ReportPropertyChanging(""MobilePhone"");
  6811. _MobilePhone = SetValidValue(_MobilePhone, value, ""MobilePhone"");
  6812. _MobilePhoneInitialized = true;
  6813. ReportPropertyChanged(""MobilePhone"");
  6814. OnMobilePhoneChanged();
  6815. }
  6816. }
  6817. private PhoneMm _MobilePhone;
  6818. private bool _MobilePhoneInitialized;
  6819. partial void OnMobilePhoneChanging(PhoneMm value);
  6820. partial void OnMobilePhoneChanged();
  6821. #endregion
  6822. }
  6823. /// <summary>
  6824. /// No Metadata Documentation available.
  6825. /// </summary>
  6826. [EdmComplexTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""DimensionsMm"")]
  6827. [DataContractAttribute(IsReference=true)]
  6828. [Serializable()]
  6829. public partial class DimensionsMm : ComplexObject
  6830. {
  6831. #region Factory Method
  6832. /// <summary>
  6833. /// Create a new DimensionsMm object.
  6834. /// </summary>
  6835. /// <param name=""width"">Initial value of the Width property.</param>
  6836. /// <param name=""height"">Initial value of the Height property.</param>
  6837. /// <param name=""depth"">Initial value of the Depth property.</param>
  6838. public static DimensionsMm CreateDimensionsMm(global::System.Decimal width, global::System.Decimal height, global::System.Decimal depth)
  6839. {
  6840. DimensionsMm dimensionsMm = new DimensionsMm();
  6841. dimensionsMm.Width = width;
  6842. dimensionsMm.Height = height;
  6843. dimensionsMm.Depth = depth;
  6844. return dimensionsMm;
  6845. }
  6846. #endregion
  6847. #region Simple Properties
  6848. /// <summary>
  6849. /// No Metadata Documentation available.
  6850. /// </summary>
  6851. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6852. [DataMemberAttribute()]
  6853. public global::System.Decimal Width
  6854. {
  6855. get
  6856. {
  6857. return _Width;
  6858. }
  6859. set
  6860. {
  6861. OnWidthChanging(value);
  6862. ReportPropertyChanging(""Width"");
  6863. _Width = StructuralObject.SetValidValue(value, ""Width"");
  6864. ReportPropertyChanged(""Width"");
  6865. OnWidthChanged();
  6866. }
  6867. }
  6868. private global::System.Decimal _Width;
  6869. partial void OnWidthChanging(global::System.Decimal value);
  6870. partial void OnWidthChanged();
  6871. /// <summary>
  6872. /// No Metadata Documentation available.
  6873. /// </summary>
  6874. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6875. [DataMemberAttribute()]
  6876. public global::System.Decimal Height
  6877. {
  6878. get
  6879. {
  6880. return _Height;
  6881. }
  6882. set
  6883. {
  6884. OnHeightChanging(value);
  6885. ReportPropertyChanging(""Height"");
  6886. _Height = StructuralObject.SetValidValue(value, ""Height"");
  6887. ReportPropertyChanged(""Height"");
  6888. OnHeightChanged();
  6889. }
  6890. }
  6891. private global::System.Decimal _Height;
  6892. partial void OnHeightChanging(global::System.Decimal value);
  6893. partial void OnHeightChanged();
  6894. /// <summary>
  6895. /// No Metadata Documentation available.
  6896. /// </summary>
  6897. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6898. [DataMemberAttribute()]
  6899. public global::System.Decimal Depth
  6900. {
  6901. get
  6902. {
  6903. return _Depth;
  6904. }
  6905. set
  6906. {
  6907. OnDepthChanging(value);
  6908. ReportPropertyChanging(""Depth"");
  6909. _Depth = StructuralObject.SetValidValue(value, ""Depth"");
  6910. ReportPropertyChanged(""Depth"");
  6911. OnDepthChanged();
  6912. }
  6913. }
  6914. private global::System.Decimal _Depth;
  6915. partial void OnDepthChanging(global::System.Decimal value);
  6916. partial void OnDepthChanged();
  6917. #endregion
  6918. }
  6919. /// <summary>
  6920. /// No Metadata Documentation available.
  6921. /// </summary>
  6922. [EdmComplexTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""PhoneMm"")]
  6923. [DataContractAttribute(IsReference=true)]
  6924. [Serializable()]
  6925. public partial class PhoneMm : ComplexObject
  6926. {
  6927. #region Factory Method
  6928. /// <summary>
  6929. /// Create a new PhoneMm object.
  6930. /// </summary>
  6931. /// <param name=""phoneNumber"">Initial value of the PhoneNumber property.</param>
  6932. /// <param name=""phoneType"">Initial value of the PhoneType property.</param>
  6933. public static PhoneMm CreatePhoneMm(global::System.String phoneNumber, PhoneTypeMm phoneType)
  6934. {
  6935. PhoneMm phoneMm = new PhoneMm();
  6936. phoneMm.PhoneNumber = phoneNumber;
  6937. phoneMm.PhoneType = phoneType;
  6938. return phoneMm;
  6939. }
  6940. #endregion
  6941. #region Simple Properties
  6942. /// <summary>
  6943. /// No Metadata Documentation available.
  6944. /// </summary>
  6945. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6946. [DataMemberAttribute()]
  6947. public global::System.String PhoneNumber
  6948. {
  6949. get
  6950. {
  6951. return _PhoneNumber;
  6952. }
  6953. set
  6954. {
  6955. OnPhoneNumberChanging(value);
  6956. ReportPropertyChanging(""PhoneNumber"");
  6957. _PhoneNumber = StructuralObject.SetValidValue(value, false, ""PhoneNumber"");
  6958. ReportPropertyChanged(""PhoneNumber"");
  6959. OnPhoneNumberChanged();
  6960. }
  6961. }
  6962. private global::System.String _PhoneNumber;
  6963. partial void OnPhoneNumberChanging(global::System.String value);
  6964. partial void OnPhoneNumberChanged();
  6965. /// <summary>
  6966. /// No Metadata Documentation available.
  6967. /// </summary>
  6968. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
  6969. [DataMemberAttribute()]
  6970. public global::System.String Extension
  6971. {
  6972. get
  6973. {
  6974. return _Extension;
  6975. }
  6976. set
  6977. {
  6978. OnExtensionChanging(value);
  6979. ReportPropertyChanging(""Extension"");
  6980. _Extension = StructuralObject.SetValidValue(value, true, ""Extension"");
  6981. ReportPropertyChanged(""Extension"");
  6982. OnExtensionChanged();
  6983. }
  6984. }
  6985. private global::System.String _Extension = ""None"";
  6986. partial void OnExtensionChanging(global::System.String value);
  6987. partial void OnExtensionChanged();
  6988. /// <summary>
  6989. /// No Metadata Documentation available.
  6990. /// </summary>
  6991. [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  6992. [DataMemberAttribute()]
  6993. public PhoneTypeMm PhoneType
  6994. {
  6995. get
  6996. {
  6997. return _PhoneType;
  6998. }
  6999. set
  7000. {
  7001. OnPhoneTypeChanging(value);
  7002. ReportPropertyChanging(""PhoneType"");
  7003. _PhoneType = (PhoneTypeMm)StructuralObject.SetValidValue((int)value, ""PhoneType"");
  7004. ReportPropertyChanged(""PhoneType"");
  7005. OnPhoneTypeChanged();
  7006. }
  7007. }
  7008. private PhoneTypeMm _PhoneType;
  7009. partial void OnPhoneTypeChanging(PhoneTypeMm value);
  7010. partial void OnPhoneTypeChanged();
  7011. #endregion
  7012. }
  7013. #endregion
  7014. #region Enums
  7015. /// <summary>
  7016. /// No Metadata Documentation available.
  7017. /// </summary>
  7018. [EdmEnumTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""LicenseStateMm"")]
  7019. [DataContractAttribute()]
  7020. public enum LicenseStateMm : int
  7021. {
  7022. /// <summary>
  7023. /// No Metadata Documentation available.
  7024. /// </summary>
  7025. [EnumMemberAttribute()]
  7026. Active = 1,
  7027. /// <summary>
  7028. /// No Metadata Documentation available.
  7029. /// </summary>
  7030. [EnumMemberAttribute()]
  7031. Suspended = 2,
  7032. /// <summary>
  7033. /// No Metadata Documentation available.
  7034. /// </summary>
  7035. [EnumMemberAttribute()]
  7036. Revoked = 3
  7037. }
  7038. /// <summary>
  7039. /// No Metadata Documentation available.
  7040. /// </summary>
  7041. [EdmEnumTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""PhoneTypeMm"")]
  7042. [DataContractAttribute()]
  7043. public enum PhoneTypeMm : int
  7044. {
  7045. /// <summary>
  7046. /// No Metadata Documentation available.
  7047. /// </summary>
  7048. [EnumMemberAttribute()]
  7049. Cell = 1,
  7050. /// <summary>
  7051. /// No Metadata Documentation available.
  7052. /// </summary>
  7053. [EnumMemberAttribute()]
  7054. Land = 2,
  7055. /// <summary>
  7056. /// No Metadata Documentation available.
  7057. /// </summary>
  7058. [EnumMemberAttribute()]
  7059. Satellite = 3
  7060. }
  7061. #endregion
  7062. }";
  7063. }
  7064. }