PageRenderTime 69ms CodeModel.GetById 29ms RepoModel.GetById 1ms 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

Large files files are truncated, but you can click here to view the full 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> g

Large files files are truncated, but you can click here to view the full file