PageRenderTime 39ms CodeModel.GetById 7ms app.highlight 16ms 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
   3namespace System.Data.Entity.Objects
   4{
   5    using System.CodeDom.Compiler;
   6    using System.Collections.Generic;
   7    using System.ComponentModel;
   8    using System.Data.Common;
   9    using System.Data.Entity.Core.Mapping;
  10    using System.Data.Entity.Core.Metadata.Edm;
  11    using System.Linq;
  12    using System.Reflection;
  13    using System.Runtime.Serialization;
  14    using System.Xml.Linq;
  15    using System.Xml.Serialization;
  16    using Xunit;
  17
  18    public class AttributeBasedOCLoading : FunctionalTestBase
  19    {
  20        [Fact]
  21        public void O_space_types_are_discovered_when_using_attribute_based_mapping()
  22        {
  23            var edmItemCollection = new EdmItemCollection(
  24                new[]
  25                    {
  26                        XDocument.Load(
  27                            typeof(AttributeBasedOCLoading).Assembly.GetManifestResourceStream(
  28                                "System.Data.Entity.TestModels.TemplateModels.Schemas.MonsterModel.csdl")).CreateReader()
  29                    });
  30
  31            var storeItemCollection = new StoreItemCollection(
  32                new[]
  33                    {
  34                        XDocument.Load(
  35                            typeof(AttributeBasedOCLoading).Assembly.GetManifestResourceStream(
  36                                "System.Data.Entity.TestModels.TemplateModels.Schemas.MonsterModel.ssdl")).CreateReader()
  37                    });
  38            var storageMappingItemCollection = LoadMsl(
  39                edmItemCollection, storeItemCollection, XDocument.Load(
  40                    typeof(AttributeBasedOCLoading).Assembly.GetManifestResourceStream(
  41                        "System.Data.Entity.TestModels.TemplateModels.Schemas.MonsterModel.msl")));
  42
  43            var workspace = new MetadataWorkspace(
  44                () => edmItemCollection,
  45                () => storeItemCollection,
  46                () => storageMappingItemCollection);
  47
  48            var assembly = BuildEntitiesAssembly(ObjectLayer);
  49            workspace.LoadFromAssembly(assembly);
  50
  51            var oSpaceItems = (ObjectItemCollection)workspace.GetItemCollection(DataSpace.OSpace);
  52
  53            // Sanity checks that types/relationships were actually found
  54            // Entity types
  55            var entityTypes = oSpaceItems
  56                .OfType<EdmType>()
  57                .Where(i => i.BuiltInTypeKind == BuiltInTypeKind.EntityType)
  58                .ToList();
  59
  60            Assert.Equal(
  61                new[]
  62                    {
  63                        "BackOrderLine2Mm", "BackOrderLineMm", "BarcodeDetailMm", "BarcodeMm", "ComplaintMm", "ComputerDetailMm",
  64                        "ComputerMm", "CustomerInfoMm", "CustomerMm", "DiscontinuedProductMm", "DriverMm", "IncorrectScanMm",
  65                        "LastLoginMm", "LicenseMm", "LoginMm", "MessageMm", "OrderLineMm", "OrderMm", "OrderNoteMm",
  66                        "OrderQualityCheckMm", "PageViewMm", "PasswordResetMm", "ProductDetailMm", "ProductMm", "ProductPageViewMm",
  67                        "ProductPhotoMm", "ProductReviewMm", "ProductWebFeatureMm", "ResolutionMm", "RSATokenMm", "SmartCardMm",
  68                        "SupplierInfoMm", "SupplierLogoMm", "SupplierMm", "SuspiciousActivityMm"
  69                    },
  70                entityTypes.Select(i => i.Name).OrderBy(n => n));
  71
  72            Assert.True(entityTypes.All(e => e.NamespaceName == "BuildMonsterModel"));
  73            Assert.True(entityTypes.All(e => oSpaceItems.GetClrType((StructuralType)e).Assembly == assembly));
  74
  75            // Complex types
  76            var complexTypes = oSpaceItems
  77                .OfType<EdmType>()
  78                .Where(i => i.BuiltInTypeKind == BuiltInTypeKind.ComplexType)
  79                .ToList();
  80
  81            Assert.Equal(
  82                new[] { "AuditInfoMm", "ConcurrencyInfoMm", "ContactDetailsMm", "DimensionsMm", "PhoneMm" },
  83                complexTypes.Select(i => i.Name).OrderBy(n => n));
  84
  85            Assert.True(complexTypes.All(e => e.NamespaceName == "BuildMonsterModel"));
  86            Assert.True(complexTypes.All(e => oSpaceItems.GetClrType((StructuralType)e).Assembly == assembly));
  87
  88            // Enum types
  89            var enumTypes = oSpaceItems
  90                .OfType<EdmType>()
  91                .Where(i => i.BuiltInTypeKind == BuiltInTypeKind.EnumType)
  92                .ToList();
  93
  94            Assert.Equal(
  95                new[] { "LicenseStateMm", "PhoneTypeMm" },
  96                enumTypes.Select(i => i.Name).OrderBy(n => n));
  97
  98            Assert.True(enumTypes.All(e => e.NamespaceName == "BuildMonsterModel"));
  99            Assert.True(enumTypes.All(e => oSpaceItems.GetClrType((EnumType)e).Assembly == assembly));
 100
 101            // Associations
 102            var associations = oSpaceItems
 103                .OfType<AssociationType>()
 104                .Where(i => i.BuiltInTypeKind == BuiltInTypeKind.AssociationType)
 105                .ToList();
 106
 107            Assert.Equal(
 108                new[]
 109                    {
 110                        "Barcode_BarcodeDetail", "Barcode_IncorrectScanActual", "Barcode_IncorrectScanExpected", "Complaint_Resolution",
 111                        "Computer_ComputerDetail", "Customer_Complaints", "Customer_CustomerInfo", "Customer_Logins", "Customer_Orders",
 112                        "DiscontinuedProduct_Replacement", "Driver_License", "Husband_Wife", "LastLogin_SmartCard", "Login_LastLogin",
 113                        "Login_Orders", "Login_PageViews", "Login_PasswordResets", "Login_ReceivedMessages", "Login_RSAToken",
 114                        "Login_SentMessages", "Login_SmartCard", "Login_SuspiciousActivity", "Order_OrderLines", "Order_OrderNotes",
 115                        "Order_QualityCheck", "Product_Barcodes", "Product_OrderLines", "Product_ProductDetail", "Product_ProductPageViews",
 116                        "Product_ProductPhoto", "Product_ProductReview", "Products_Suppliers", "ProductWebFeature_ProductPhoto",
 117                        "ProductWebFeature_ProductReview", "Supplier_BackOrderLines", "Supplier_SupplierInfo", "Supplier_SupplierLogo"
 118                    },
 119                associations.Select(i => i.Name).OrderBy(n => n));
 120
 121            Assert.True(associations.All(e => e.NamespaceName == "MonsterNamespace"));
 122        }
 123
 124        private static StorageMappingItemCollection LoadMsl(
 125            EdmItemCollection edmItemCollection, StoreItemCollection storeItemCollection, XDocument msl)
 126        {
 127            IList<EdmSchemaError> errors;
 128            return StorageMappingItemCollection.Create(
 129                edmItemCollection,
 130                storeItemCollection,
 131                new[] { msl.CreateReader() },
 132                null,
 133                out errors);
 134        }
 135
 136        public Assembly BuildEntitiesAssembly(string source)
 137        {
 138            var options = new CompilerParameters
 139                {
 140                    GenerateExecutable = false,
 141                    GenerateInMemory = true
 142                };
 143
 144            options.ReferencedAssemblies.Add(typeof(string).Assembly.Location);
 145            options.ReferencedAssemblies.Add(typeof(DbContext).Assembly.Location);
 146            options.ReferencedAssemblies.Add(typeof(DbConnection).Assembly.Location);
 147            options.ReferencedAssemblies.Add(typeof(Component).Assembly.Location);
 148            options.ReferencedAssemblies.Add(typeof(DataContractSerializer).Assembly.Location);
 149            options.ReferencedAssemblies.Add(typeof(XmlSerializer).Assembly.Location);
 150            options.ReferencedAssemblies.Add(typeof(IOrderedQueryable).Assembly.Location);
 151
 152            return CodeDomProvider.CreateProvider("cs").CompileAssemblyFromSource(options, source).CompiledAssembly;
 153        }
 154
 155        private const string ObjectLayer = @"
 156//------------------------------------------------------------------------------
 157// <auto-generated>
 158//    This code was generated from a template.
 159//
 160//    Manual changes to this file may cause unexpected behavior in your application.
 161//    Manual changes to this file will be overwritten if the code is regenerated.
 162// </auto-generated>
 163//------------------------------------------------------------------------------
 164
 165using System;
 166using System.ComponentModel;
 167using System.Data.Entity.Core.EntityClient;
 168using System.Data.Entity.Core.Objects;
 169using System.Data.Entity.Core.Objects.DataClasses;
 170using System.Linq;
 171using System.Runtime.Serialization;
 172using System.Xml.Serialization;
 173
 174[assembly: EdmSchemaAttribute()]
 175#region EDM Relationship Metadata
 176
 177[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)]
 178[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)]
 179[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)]
 180[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))]
 181[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))]
 182[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))]
 183[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))]
 184[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)]
 185[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)]
 186[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)]
 187[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)]
 188[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)]
 189[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))]
 190[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)]
 191[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)]
 192[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))]
 193[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))]
 194[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)]
 195[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)]
 196[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)]
 197[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)]
 198[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)]
 199[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)]
 200[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))]
 201[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)]
 202[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))]
 203[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)]
 204[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)]
 205[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)]
 206[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))]
 207[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))]
 208[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)]
 209[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)]
 210[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)]
 211[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)]
 212[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))]
 213[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)]
 214
 215#endregion
 216
 217namespace BuildMonsterModel
 218{
 219    #region Contexts
 220    
 221    /// <summary>
 222    /// No Metadata Documentation available.
 223    /// </summary>
 224    public partial class MonsterModel : ObjectContext
 225    {
 226        #region Constructors
 227    
 228        /// <summary>
 229        /// Initializes a new MonsterModel object using the connection string found in the 'MonsterModel' section of the application configuration file.
 230        /// </summary>
 231        public MonsterModel() : base(""name=MonsterModel"", ""MonsterModel"")
 232        {
 233            OnContextCreated();
 234        }
 235    
 236        /// <summary>
 237        /// Initialize a new MonsterModel object.
 238        /// </summary>
 239        public MonsterModel(string connectionString) : base(connectionString, ""MonsterModel"")
 240        {
 241            OnContextCreated();
 242        }
 243    
 244        /// <summary>
 245        /// Initialize a new MonsterModel object.
 246        /// </summary>
 247        public MonsterModel(EntityConnection connection) : base(connection, ""MonsterModel"")
 248        {
 249            OnContextCreated();
 250        }
 251    
 252        #endregion
 253    
 254        #region Partial Methods
 255    
 256        partial void OnContextCreated();
 257    
 258        #endregion
 259    
 260        #region ObjectSet Properties
 261    
 262        /// <summary>
 263        /// No Metadata Documentation available.
 264        /// </summary>
 265        public ObjectSet<CustomerMm> Customer
 266        {
 267            get
 268            {
 269                if ((_Customer == null))
 270                {
 271                    _Customer = base.CreateObjectSet<CustomerMm>(""Customer"");
 272                }
 273                return _Customer;
 274            }
 275        }
 276        private ObjectSet<CustomerMm> _Customer;
 277    
 278        /// <summary>
 279        /// No Metadata Documentation available.
 280        /// </summary>
 281        public ObjectSet<BarcodeMm> Barcode
 282        {
 283            get
 284            {
 285                if ((_Barcode == null))
 286                {
 287                    _Barcode = base.CreateObjectSet<BarcodeMm>(""Barcode"");
 288                }
 289                return _Barcode;
 290            }
 291        }
 292        private ObjectSet<BarcodeMm> _Barcode;
 293    
 294        /// <summary>
 295        /// No Metadata Documentation available.
 296        /// </summary>
 297        public ObjectSet<IncorrectScanMm> IncorrectScan
 298        {
 299            get
 300            {
 301                if ((_IncorrectScan == null))
 302                {
 303                    _IncorrectScan = base.CreateObjectSet<IncorrectScanMm>(""IncorrectScan"");
 304                }
 305                return _IncorrectScan;
 306            }
 307        }
 308        private ObjectSet<IncorrectScanMm> _IncorrectScan;
 309    
 310        /// <summary>
 311        /// No Metadata Documentation available.
 312        /// </summary>
 313        public ObjectSet<BarcodeDetailMm> BarcodeDetail
 314        {
 315            get
 316            {
 317                if ((_BarcodeDetail == null))
 318                {
 319                    _BarcodeDetail = base.CreateObjectSet<BarcodeDetailMm>(""BarcodeDetail"");
 320                }
 321                return _BarcodeDetail;
 322            }
 323        }
 324        private ObjectSet<BarcodeDetailMm> _BarcodeDetail;
 325    
 326        /// <summary>
 327        /// No Metadata Documentation available.
 328        /// </summary>
 329        public ObjectSet<ComplaintMm> Complaint
 330        {
 331            get
 332            {
 333                if ((_Complaint == null))
 334                {
 335                    _Complaint = base.CreateObjectSet<ComplaintMm>(""Complaint"");
 336                }
 337                return _Complaint;
 338            }
 339        }
 340        private ObjectSet<ComplaintMm> _Complaint;
 341    
 342        /// <summary>
 343        /// No Metadata Documentation available.
 344        /// </summary>
 345        public ObjectSet<ResolutionMm> Resolution
 346        {
 347            get
 348            {
 349                if ((_Resolution == null))
 350                {
 351                    _Resolution = base.CreateObjectSet<ResolutionMm>(""Resolution"");
 352                }
 353                return _Resolution;
 354            }
 355        }
 356        private ObjectSet<ResolutionMm> _Resolution;
 357    
 358        /// <summary>
 359        /// No Metadata Documentation available.
 360        /// </summary>
 361        public ObjectSet<LoginMm> Login
 362        {
 363            get
 364            {
 365                if ((_Login == null))
 366                {
 367                    _Login = base.CreateObjectSet<LoginMm>(""Login"");
 368                }
 369                return _Login;
 370            }
 371        }
 372        private ObjectSet<LoginMm> _Login;
 373    
 374        /// <summary>
 375        /// No Metadata Documentation available.
 376        /// </summary>
 377        public ObjectSet<SuspiciousActivityMm> SuspiciousActivity
 378        {
 379            get
 380            {
 381                if ((_SuspiciousActivity == null))
 382                {
 383                    _SuspiciousActivity = base.CreateObjectSet<SuspiciousActivityMm>(""SuspiciousActivity"");
 384                }
 385                return _SuspiciousActivity;
 386            }
 387        }
 388        private ObjectSet<SuspiciousActivityMm> _SuspiciousActivity;
 389    
 390        /// <summary>
 391        /// No Metadata Documentation available.
 392        /// </summary>
 393        public ObjectSet<SmartCardMm> SmartCard
 394        {
 395            get
 396            {
 397                if ((_SmartCard == null))
 398                {
 399                    _SmartCard = base.CreateObjectSet<SmartCardMm>(""SmartCard"");
 400                }
 401                return _SmartCard;
 402            }
 403        }
 404        private ObjectSet<SmartCardMm> _SmartCard;
 405    
 406        /// <summary>
 407        /// No Metadata Documentation available.
 408        /// </summary>
 409        public ObjectSet<RSATokenMm> RSAToken
 410        {
 411            get
 412            {
 413                if ((_RSAToken == null))
 414                {
 415                    _RSAToken = base.CreateObjectSet<RSATokenMm>(""RSAToken"");
 416                }
 417                return _RSAToken;
 418            }
 419        }
 420        private ObjectSet<RSATokenMm> _RSAToken;
 421    
 422        /// <summary>
 423        /// No Metadata Documentation available.
 424        /// </summary>
 425        public ObjectSet<PasswordResetMm> PasswordReset
 426        {
 427            get
 428            {
 429                if ((_PasswordReset == null))
 430                {
 431                    _PasswordReset = base.CreateObjectSet<PasswordResetMm>(""PasswordReset"");
 432                }
 433                return _PasswordReset;
 434            }
 435        }
 436        private ObjectSet<PasswordResetMm> _PasswordReset;
 437    
 438        /// <summary>
 439        /// No Metadata Documentation available.
 440        /// </summary>
 441        public ObjectSet<PageViewMm> PageView
 442        {
 443            get
 444            {
 445                if ((_PageView == null))
 446                {
 447                    _PageView = base.CreateObjectSet<PageViewMm>(""PageView"");
 448                }
 449                return _PageView;
 450            }
 451        }
 452        private ObjectSet<PageViewMm> _PageView;
 453    
 454        /// <summary>
 455        /// No Metadata Documentation available.
 456        /// </summary>
 457        public ObjectSet<LastLoginMm> LastLogin
 458        {
 459            get
 460            {
 461                if ((_LastLogin == null))
 462                {
 463                    _LastLogin = base.CreateObjectSet<LastLoginMm>(""LastLogin"");
 464                }
 465                return _LastLogin;
 466            }
 467        }
 468        private ObjectSet<LastLoginMm> _LastLogin;
 469    
 470        /// <summary>
 471        /// No Metadata Documentation available.
 472        /// </summary>
 473        public ObjectSet<MessageMm> Message
 474        {
 475            get
 476            {
 477                if ((_Message == null))
 478                {
 479                    _Message = base.CreateObjectSet<MessageMm>(""Message"");
 480                }
 481                return _Message;
 482            }
 483        }
 484        private ObjectSet<MessageMm> _Message;
 485    
 486        /// <summary>
 487        /// No Metadata Documentation available.
 488        /// </summary>
 489        public ObjectSet<OrderMm> Order
 490        {
 491            get
 492            {
 493                if ((_Order == null))
 494                {
 495                    _Order = base.CreateObjectSet<OrderMm>(""Order"");
 496                }
 497                return _Order;
 498            }
 499        }
 500        private ObjectSet<OrderMm> _Order;
 501    
 502        /// <summary>
 503        /// No Metadata Documentation available.
 504        /// </summary>
 505        public ObjectSet<OrderNoteMm> OrderNote
 506        {
 507            get
 508            {
 509                if ((_OrderNote == null))
 510                {
 511                    _OrderNote = base.CreateObjectSet<OrderNoteMm>(""OrderNote"");
 512                }
 513                return _OrderNote;
 514            }
 515        }
 516        private ObjectSet<OrderNoteMm> _OrderNote;
 517    
 518        /// <summary>
 519        /// No Metadata Documentation available.
 520        /// </summary>
 521        public ObjectSet<OrderQualityCheckMm> OrderQualityCheck
 522        {
 523            get
 524            {
 525                if ((_OrderQualityCheck == null))
 526                {
 527                    _OrderQualityCheck = base.CreateObjectSet<OrderQualityCheckMm>(""OrderQualityCheck"");
 528                }
 529                return _OrderQualityCheck;
 530            }
 531        }
 532        private ObjectSet<OrderQualityCheckMm> _OrderQualityCheck;
 533    
 534        /// <summary>
 535        /// No Metadata Documentation available.
 536        /// </summary>
 537        public ObjectSet<OrderLineMm> OrderLine
 538        {
 539            get
 540            {
 541                if ((_OrderLine == null))
 542                {
 543                    _OrderLine = base.CreateObjectSet<OrderLineMm>(""OrderLine"");
 544                }
 545                return _OrderLine;
 546            }
 547        }
 548        private ObjectSet<OrderLineMm> _OrderLine;
 549    
 550        /// <summary>
 551        /// No Metadata Documentation available.
 552        /// </summary>
 553        public ObjectSet<ProductMm> Product
 554        {
 555            get
 556            {
 557                if ((_Product == null))
 558                {
 559                    _Product = base.CreateObjectSet<ProductMm>(""Product"");
 560                }
 561                return _Product;
 562            }
 563        }
 564        private ObjectSet<ProductMm> _Product;
 565    
 566        /// <summary>
 567        /// No Metadata Documentation available.
 568        /// </summary>
 569        public ObjectSet<ProductDetailMm> ProductDetail
 570        {
 571            get
 572            {
 573                if ((_ProductDetail == null))
 574                {
 575                    _ProductDetail = base.CreateObjectSet<ProductDetailMm>(""ProductDetail"");
 576                }
 577                return _ProductDetail;
 578            }
 579        }
 580        private ObjectSet<ProductDetailMm> _ProductDetail;
 581    
 582        /// <summary>
 583        /// No Metadata Documentation available.
 584        /// </summary>
 585        public ObjectSet<ProductReviewMm> ProductReview
 586        {
 587            get
 588            {
 589                if ((_ProductReview == null))
 590                {
 591                    _ProductReview = base.CreateObjectSet<ProductReviewMm>(""ProductReview"");
 592                }
 593                return _ProductReview;
 594            }
 595        }
 596        private ObjectSet<ProductReviewMm> _ProductReview;
 597    
 598        /// <summary>
 599        /// No Metadata Documentation available.
 600        /// </summary>
 601        public ObjectSet<ProductPhotoMm> ProductPhoto
 602        {
 603            get
 604            {
 605                if ((_ProductPhoto == null))
 606                {
 607                    _ProductPhoto = base.CreateObjectSet<ProductPhotoMm>(""ProductPhoto"");
 608                }
 609                return _ProductPhoto;
 610            }
 611        }
 612        private ObjectSet<ProductPhotoMm> _ProductPhoto;
 613    
 614        /// <summary>
 615        /// No Metadata Documentation available.
 616        /// </summary>
 617        public ObjectSet<ProductWebFeatureMm> ProductWebFeature
 618        {
 619            get
 620            {
 621                if ((_ProductWebFeature == null))
 622                {
 623                    _ProductWebFeature = base.CreateObjectSet<ProductWebFeatureMm>(""ProductWebFeature"");
 624                }
 625                return _ProductWebFeature;
 626            }
 627        }
 628        private ObjectSet<ProductWebFeatureMm> _ProductWebFeature;
 629    
 630        /// <summary>
 631        /// No Metadata Documentation available.
 632        /// </summary>
 633        public ObjectSet<SupplierMm> Supplier
 634        {
 635            get
 636            {
 637                if ((_Supplier == null))
 638                {
 639                    _Supplier = base.CreateObjectSet<SupplierMm>(""Supplier"");
 640                }
 641                return _Supplier;
 642            }
 643        }
 644        private ObjectSet<SupplierMm> _Supplier;
 645    
 646        /// <summary>
 647        /// No Metadata Documentation available.
 648        /// </summary>
 649        public ObjectSet<SupplierLogoMm> SupplierLogo
 650        {
 651            get
 652            {
 653                if ((_SupplierLogo == null))
 654                {
 655                    _SupplierLogo = base.CreateObjectSet<SupplierLogoMm>(""SupplierLogo"");
 656                }
 657                return _SupplierLogo;
 658            }
 659        }
 660        private ObjectSet<SupplierLogoMm> _SupplierLogo;
 661    
 662        /// <summary>
 663        /// No Metadata Documentation available.
 664        /// </summary>
 665        public ObjectSet<SupplierInfoMm> SupplierInfo
 666        {
 667            get
 668            {
 669                if ((_SupplierInfo == null))
 670                {
 671                    _SupplierInfo = base.CreateObjectSet<SupplierInfoMm>(""SupplierInfo"");
 672                }
 673                return _SupplierInfo;
 674            }
 675        }
 676        private ObjectSet<SupplierInfoMm> _SupplierInfo;
 677    
 678        /// <summary>
 679        /// No Metadata Documentation available.
 680        /// </summary>
 681        public ObjectSet<CustomerInfoMm> CustomerInfo
 682        {
 683            get
 684            {
 685                if ((_CustomerInfo == null))
 686                {
 687                    _CustomerInfo = base.CreateObjectSet<CustomerInfoMm>(""CustomerInfo"");
 688                }
 689                return _CustomerInfo;
 690            }
 691        }
 692        private ObjectSet<CustomerInfoMm> _CustomerInfo;
 693    
 694        /// <summary>
 695        /// No Metadata Documentation available.
 696        /// </summary>
 697        public ObjectSet<ComputerMm> Computer
 698        {
 699            get
 700            {
 701                if ((_Computer == null))
 702                {
 703                    _Computer = base.CreateObjectSet<ComputerMm>(""Computer"");
 704                }
 705                return _Computer;
 706            }
 707        }
 708        private ObjectSet<ComputerMm> _Computer;
 709    
 710        /// <summary>
 711        /// No Metadata Documentation available.
 712        /// </summary>
 713        public ObjectSet<ComputerDetailMm> ComputerDetail
 714        {
 715            get
 716            {
 717                if ((_ComputerDetail == null))
 718                {
 719                    _ComputerDetail = base.CreateObjectSet<ComputerDetailMm>(""ComputerDetail"");
 720                }
 721                return _ComputerDetail;
 722            }
 723        }
 724        private ObjectSet<ComputerDetailMm> _ComputerDetail;
 725    
 726        /// <summary>
 727        /// No Metadata Documentation available.
 728        /// </summary>
 729        public ObjectSet<DriverMm> Driver
 730        {
 731            get
 732            {
 733                if ((_Driver == null))
 734                {
 735                    _Driver = base.CreateObjectSet<DriverMm>(""Driver"");
 736                }
 737                return _Driver;
 738            }
 739        }
 740        private ObjectSet<DriverMm> _Driver;
 741    
 742        /// <summary>
 743        /// No Metadata Documentation available.
 744        /// </summary>
 745        public ObjectSet<LicenseMm> License
 746        {
 747            get
 748            {
 749                if ((_License == null))
 750                {
 751                    _License = base.CreateObjectSet<LicenseMm>(""License"");
 752                }
 753                return _License;
 754            }
 755        }
 756        private ObjectSet<LicenseMm> _License;
 757
 758        #endregion
 759
 760        #region AddTo Methods
 761    
 762        /// <summary>
 763        /// 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.
 764        /// </summary>
 765        public void AddToCustomer(CustomerMm customerMm)
 766        {
 767            base.AddObject(""Customer"", customerMm);
 768        }
 769    
 770        /// <summary>
 771        /// 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.
 772        /// </summary>
 773        public void AddToBarcode(BarcodeMm barcodeMm)
 774        {
 775            base.AddObject(""Barcode"", barcodeMm);
 776        }
 777    
 778        /// <summary>
 779        /// 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.
 780        /// </summary>
 781        public void AddToIncorrectScan(IncorrectScanMm incorrectScanMm)
 782        {
 783            base.AddObject(""IncorrectScan"", incorrectScanMm);
 784        }
 785    
 786        /// <summary>
 787        /// 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.
 788        /// </summary>
 789        public void AddToBarcodeDetail(BarcodeDetailMm barcodeDetailMm)
 790        {
 791            base.AddObject(""BarcodeDetail"", barcodeDetailMm);
 792        }
 793    
 794        /// <summary>
 795        /// 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.
 796        /// </summary>
 797        public void AddToComplaint(ComplaintMm complaintMm)
 798        {
 799            base.AddObject(""Complaint"", complaintMm);
 800        }
 801    
 802        /// <summary>
 803        /// 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.
 804        /// </summary>
 805        public void AddToResolution(ResolutionMm resolutionMm)
 806        {
 807            base.AddObject(""Resolution"", resolutionMm);
 808        }
 809    
 810        /// <summary>
 811        /// 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.
 812        /// </summary>
 813        public void AddToLogin(LoginMm loginMm)
 814        {
 815            base.AddObject(""Login"", loginMm);
 816        }
 817    
 818        /// <summary>
 819        /// 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.
 820        /// </summary>
 821        public void AddToSuspiciousActivity(SuspiciousActivityMm suspiciousActivityMm)
 822        {
 823            base.AddObject(""SuspiciousActivity"", suspiciousActivityMm);
 824        }
 825    
 826        /// <summary>
 827        /// 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.
 828        /// </summary>
 829        public void AddToSmartCard(SmartCardMm smartCardMm)
 830        {
 831            base.AddObject(""SmartCard"", smartCardMm);
 832        }
 833    
 834        /// <summary>
 835        /// 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.
 836        /// </summary>
 837        public void AddToRSAToken(RSATokenMm rSATokenMm)
 838        {
 839            base.AddObject(""RSAToken"", rSATokenMm);
 840        }
 841    
 842        /// <summary>
 843        /// 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.
 844        /// </summary>
 845        public void AddToPasswordReset(PasswordResetMm passwordResetMm)
 846        {
 847            base.AddObject(""PasswordReset"", passwordResetMm);
 848        }
 849    
 850        /// <summary>
 851        /// 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.
 852        /// </summary>
 853        public void AddToPageView(PageViewMm pageViewMm)
 854        {
 855            base.AddObject(""PageView"", pageViewMm);
 856        }
 857    
 858        /// <summary>
 859        /// 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.
 860        /// </summary>
 861        public void AddToLastLogin(LastLoginMm lastLoginMm)
 862        {
 863            base.AddObject(""LastLogin"", lastLoginMm);
 864        }
 865    
 866        /// <summary>
 867        /// 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.
 868        /// </summary>
 869        public void AddToMessage(MessageMm messageMm)
 870        {
 871            base.AddObject(""Message"", messageMm);
 872        }
 873    
 874        /// <summary>
 875        /// 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.
 876        /// </summary>
 877        public void AddToOrder(OrderMm orderMm)
 878        {
 879            base.AddObject(""Order"", orderMm);
 880        }
 881    
 882        /// <summary>
 883        /// 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.
 884        /// </summary>
 885        public void AddToOrderNote(OrderNoteMm orderNoteMm)
 886        {
 887            base.AddObject(""OrderNote"", orderNoteMm);
 888        }
 889    
 890        /// <summary>
 891        /// 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.
 892        /// </summary>
 893        public void AddToOrderQualityCheck(OrderQualityCheckMm orderQualityCheckMm)
 894        {
 895            base.AddObject(""OrderQualityCheck"", orderQualityCheckMm);
 896        }
 897    
 898        /// <summary>
 899        /// 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.
 900        /// </summary>
 901        public void AddToOrderLine(OrderLineMm orderLineMm)
 902        {
 903            base.AddObject(""OrderLine"", orderLineMm);
 904        }
 905    
 906        /// <summary>
 907        /// 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.
 908        /// </summary>
 909        public void AddToProduct(ProductMm productMm)
 910        {
 911            base.AddObject(""Product"", productMm);
 912        }
 913    
 914        /// <summary>
 915        /// 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.
 916        /// </summary>
 917        public void AddToProductDetail(ProductDetailMm productDetailMm)
 918        {
 919            base.AddObject(""ProductDetail"", productDetailMm);
 920        }
 921    
 922        /// <summary>
 923        /// 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.
 924        /// </summary>
 925        public void AddToProductReview(ProductReviewMm productReviewMm)
 926        {
 927            base.AddObject(""ProductReview"", productReviewMm);
 928        }
 929    
 930        /// <summary>
 931        /// 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.
 932        /// </summary>
 933        public void AddToProductPhoto(ProductPhotoMm productPhotoMm)
 934        {
 935            base.AddObject(""ProductPhoto"", productPhotoMm);
 936        }
 937    
 938        /// <summary>
 939        /// 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.
 940        /// </summary>
 941        public void AddToProductWebFeature(ProductWebFeatureMm productWebFeatureMm)
 942        {
 943            base.AddObject(""ProductWebFeature"", productWebFeatureMm);
 944        }
 945    
 946        /// <summary>
 947        /// 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.
 948        /// </summary>
 949        public void AddToSupplier(SupplierMm supplierMm)
 950        {
 951            base.AddObject(""Supplier"", supplierMm);
 952        }
 953    
 954        /// <summary>
 955        /// 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.
 956        /// </summary>
 957        public void AddToSupplierLogo(SupplierLogoMm supplierLogoMm)
 958        {
 959            base.AddObject(""SupplierLogo"", supplierLogoMm);
 960        }
 961    
 962        /// <summary>
 963        /// 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.
 964        /// </summary>
 965        public void AddToSupplierInfo(SupplierInfoMm supplierInfoMm)
 966        {
 967            base.AddObject(""SupplierInfo"", supplierInfoMm);
 968        }
 969    
 970        /// <summary>
 971        /// 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.
 972        /// </summary>
 973        public void AddToCustomerInfo(CustomerInfoMm customerInfoMm)
 974        {
 975            base.AddObject(""CustomerInfo"", customerInfoMm);
 976        }
 977    
 978        /// <summary>
 979        /// 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.
 980        /// </summary>
 981        public void AddToComputer(ComputerMm computerMm)
 982        {
 983            base.AddObject(""Computer"", computerMm);
 984        }
 985    
 986        /// <summary>
 987        /// 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.
 988        /// </summary>
 989        public void AddToComputerDetail(ComputerDetailMm computerDetailMm)
 990        {
 991            base.AddObject(""ComputerDetail"", computerDetailMm);
 992        }
 993    
 994        /// <summary>
 995        /// 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.
 996        /// </summary>
 997        public void AddToDriver(DriverMm driverMm)
 998        {
 999            base.AddObject(""Driver"", driverMm);
1000        }
1001    
1002        /// <summary>
1003        /// 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.
1004        /// </summary>
1005        public void AddToLicense(LicenseMm licenseMm)
1006        {
1007            base.AddObject(""License"", licenseMm);
1008        }
1009
1010        #endregion
1011
1012        #region Function Imports
1013    
1014        /// <summary>
1015        /// No Metadata Documentation available.
1016        /// </summary>
1017        /// <param name=""modifiedDate"">No Metadata Documentation available.</param>
1018        private ObjectResult<AuditInfoMm> FunctionImport1(ObjectParameter modifiedDate)
1019        {
1020            return base.ExecuteFunction<AuditInfoMm>(""FunctionImport1"", modifiedDate);
1021        }
1022    
1023        /// <summary>
1024        /// No Metadata Documentation available.
1025        /// </summary>
1026        internal ObjectResult<CustomerMm> FunctionImport2()
1027        {
1028            return base.ExecuteFunction<CustomerMm>(""FunctionImport2"");
1029        }
1030        /// <summary>
1031        /// No Metadata Documentation available.
1032        /// </summary>
1033        /// <param name=""mergeOption""></param>
1034        internal ObjectResult<CustomerMm> FunctionImport2(MergeOption mergeOption)
1035        {
1036            return base.ExecuteFunction<CustomerMm>(""FunctionImport2"", mergeOption);
1037        }
1038    
1039        /// <summary>
1040        /// No Metadata Documentation available.
1041        /// </summary>
1042        /// <param name=""binary"">No Metadata Documentation available.</param>
1043        /// <param name=""bool"">No Metadata Documentation available.</param>
1044        /// <param name=""dateTime"">No Metadata Documentation available.</param>
1045        /// <param name=""decimal"">No Metadata Documentation available.</param>
1046        /// <param name=""float"">No Metadata Documentation available.</param>
1047        /// <param name=""guid"">No Metadata Documentation available.</param>
1048        /// <param name=""int"">No Metadata Documentation available.</param>
1049        /// <param name=""string"">No Metadata Documentation available.</param>
1050        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