PageRenderTime 295ms CodeModel.GetById 6ms app.highlight 260ms RepoModel.GetById 1ms app.codeStats 2ms

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

https://bitbucket.org/vanickdigital/totus.entityframework
C# | 7682 lines | 7653 code | 23 blank | 6 comment | 11 complexity | a483a66a78d8e3af6312a6de196ca41a MD5 | raw file
   1// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
   2
   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> guid, ObjectParameter @int, ObjectParameter @string)
1051        {
1052            ObjectParameter binaryParameter;
1053            if (binary != null)
1054            {
1055                binaryParameter = new ObjectParameter(""binary"", binary);
1056            }
1057            else
1058            {
1059                binaryParameter = new ObjectParameter(""binary"", typeof(global::System.Byte[]));
1060            }
1061    
1062            ObjectParameter boolParameter;
1063            if (@bool.HasValue)
1064            {
1065                boolParameter = new ObjectParameter(""bool"", @bool);
1066            }
1067            else
1068            {
1069                boolParameter = new ObjectParameter(""bool"", typeof(global::System.Boolean));
1070            }
1071    
1072            ObjectParameter dateTimeParameter;
1073            if (dateTime.HasValue)
1074            {
1075                dateTimeParameter = new ObjectParameter(""dateTime"", dateTime);
1076            }
1077            else
1078            {
1079                dateTimeParameter = new ObjectParameter(""dateTime"", typeof(global::System.DateTime));
1080            }
1081    
1082            ObjectParameter decimalParameter;
1083            if (@decimal.HasValue)
1084            {
1085                decimalParameter = new ObjectParameter(""decimal"", @decimal);
1086            }
1087            else
1088            {
1089                decimalParameter = new ObjectParameter(""decimal"", typeof(global::System.Decimal));
1090            }
1091    
1092            ObjectParameter floatParameter;
1093            if (@float.HasValue)
1094            {
1095                floatParameter = new ObjectParameter(""float"", @float);
1096            }
1097            else
1098            {
1099                floatParameter = new ObjectParameter(""float"", typeof(global::System.Double));
1100            }
1101    
1102            ObjectParameter guidParameter;
1103            if (guid.HasValue)
1104            {
1105                guidParameter = new ObjectParameter(""guid"", guid);
1106            }
1107            else
1108            {
1109                guidParameter = new ObjectParameter(""guid"", typeof(global::System.Guid));
1110            }
1111    
1112            return base.ExecuteFunction(""ParameterTest"", binaryParameter, boolParameter, dateTimeParameter, decimalParameter, floatParameter, guidParameter, @int, @string);
1113        }
1114    
1115        /// <summary>
1116        /// No Metadata Documentation available.
1117        /// </summary>
1118        public ObjectResult<ComputerMm> EntityTypeTest()
1119        {
1120            return base.ExecuteFunction<ComputerMm>(""EntityTypeTest"");
1121        }
1122        /// <summary>
1123        /// No Metadata Documentation available.
1124        /// </summary>
1125        /// <param name=""mergeOption""></param>
1126        public ObjectResult<ComputerMm> EntityTypeTest(MergeOption mergeOption)
1127        {
1128            return base.ExecuteFunction<ComputerMm>(""EntityTypeTest"", mergeOption);
1129        }
1130
1131        #endregion
1132
1133    }
1134
1135    #endregion
1136
1137    #region Entities
1138    
1139    /// <summary>
1140    /// No Metadata Documentation available.
1141    /// </summary>
1142    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""BackOrderLine2Mm"")]
1143    [Serializable()]
1144    [DataContractAttribute(IsReference=true)]
1145    public partial class BackOrderLine2Mm : BackOrderLineMm
1146    {
1147        #region Factory Method
1148    
1149        /// <summary>
1150        /// Create a new BackOrderLine2Mm object.
1151        /// </summary>
1152        /// <param name=""orderId"">Initial value of the OrderId property.</param>
1153        /// <param name=""productId"">Initial value of the ProductId property.</param>
1154        /// <param name=""concurrencyToken"">Initial value of the ConcurrencyToken property.</param>
1155        /// <param name=""eTA"">Initial value of the ETA property.</param>
1156        public static BackOrderLine2Mm CreateBackOrderLine2Mm(global::System.Int32 orderId, global::System.Int32 productId, global::System.String concurrencyToken, global::System.DateTime eTA)
1157        {
1158            BackOrderLine2Mm backOrderLine2Mm = new BackOrderLine2Mm();
1159            backOrderLine2Mm.OrderId = orderId;
1160            backOrderLine2Mm.ProductId = productId;
1161            backOrderLine2Mm.ConcurrencyToken = concurrencyToken;
1162            backOrderLine2Mm.ETA = eTA;
1163            return backOrderLine2Mm;
1164        }
1165
1166        #endregion
1167
1168    }
1169    
1170    /// <summary>
1171    /// No Metadata Documentation available.
1172    /// </summary>
1173    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""BackOrderLineMm"")]
1174    [Serializable()]
1175    [DataContractAttribute(IsReference=true)]
1176    [KnownTypeAttribute(typeof(BackOrderLine2Mm))]
1177    public partial class BackOrderLineMm : OrderLineMm
1178    {
1179        #region Factory Method
1180    
1181        /// <summary>
1182        /// Create a new BackOrderLineMm object.
1183        /// </summary>
1184        /// <param name=""orderId"">Initial value of the OrderId property.</param>
1185        /// <param name=""productId"">Initial value of the ProductId property.</param>
1186        /// <param name=""concurrencyToken"">Initial value of the ConcurrencyToken property.</param>
1187        /// <param name=""eTA"">Initial value of the ETA property.</param>
1188        public static BackOrderLineMm CreateBackOrderLineMm(global::System.Int32 orderId, global::System.Int32 productId, global::System.String concurrencyToken, global::System.DateTime eTA)
1189        {
1190            BackOrderLineMm backOrderLineMm = new BackOrderLineMm();
1191            backOrderLineMm.OrderId = orderId;
1192            backOrderLineMm.ProductId = productId;
1193            backOrderLineMm.ConcurrencyToken = concurrencyToken;
1194            backOrderLineMm.ETA = eTA;
1195            return backOrderLineMm;
1196        }
1197
1198        #endregion
1199
1200        #region Simple Properties
1201    
1202        /// <summary>
1203        /// No Metadata Documentation available.
1204        /// </summary>
1205        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
1206        [DataMemberAttribute()]
1207        public global::System.DateTime ETA
1208        {
1209            get
1210            {
1211                return _ETA;
1212            }
1213            set
1214            {
1215                OnETAChanging(value);
1216                ReportPropertyChanging(""ETA"");
1217                _ETA = StructuralObject.SetValidValue(value, ""ETA"");
1218                ReportPropertyChanged(""ETA"");
1219                OnETAChanged();
1220            }
1221        }
1222        private global::System.DateTime _ETA;
1223        partial void OnETAChanging(global::System.DateTime value);
1224        partial void OnETAChanged();
1225
1226        #endregion
1227
1228        #region Navigation Properties
1229    
1230        /// <summary>
1231        /// No Metadata Documentation available.
1232        /// </summary>
1233        [XmlIgnoreAttribute()]
1234        [SoapIgnoreAttribute()]
1235        [DataMemberAttribute()]
1236        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Supplier_BackOrderLines"", ""Supplier"")]
1237        public SupplierMm Supplier
1238        {
1239            get
1240            {
1241                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_BackOrderLines"", ""Supplier"").Value;
1242            }
1243            set
1244            {
1245                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_BackOrderLines"", ""Supplier"").Value = value;
1246            }
1247        }
1248        /// <summary>
1249        /// No Metadata Documentation available.
1250        /// </summary>
1251        [BrowsableAttribute(false)]
1252        [DataMemberAttribute()]
1253        public EntityReference<SupplierMm> SupplierReference
1254        {
1255            get
1256            {
1257                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_BackOrderLines"", ""Supplier"");
1258            }
1259            set
1260            {
1261                if ((value != null))
1262                {
1263                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_BackOrderLines"", ""Supplier"", value);
1264                }
1265            }
1266        }
1267
1268        #endregion
1269
1270    }
1271    
1272    /// <summary>
1273    /// No Metadata Documentation available.
1274    /// </summary>
1275    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""BarcodeDetailMm"")]
1276    [Serializable()]
1277    [DataContractAttribute(IsReference=true)]
1278    public partial class BarcodeDetailMm : EntityObject
1279    {
1280        #region Factory Method
1281    
1282        /// <summary>
1283        /// Create a new BarcodeDetailMm object.
1284        /// </summary>
1285        /// <param name=""code"">Initial value of the Code property.</param>
1286        /// <param name=""registeredTo"">Initial value of the RegisteredTo property.</param>
1287        public static BarcodeDetailMm CreateBarcodeDetailMm(global::System.Byte[] code, global::System.String registeredTo)
1288        {
1289            BarcodeDetailMm barcodeDetailMm = new BarcodeDetailMm();
1290            barcodeDetailMm.Code = code;
1291            barcodeDetailMm.RegisteredTo = registeredTo;
1292            return barcodeDetailMm;
1293        }
1294
1295        #endregion
1296
1297        #region Simple Properties
1298    
1299        /// <summary>
1300        /// No Metadata Documentation available.
1301        /// </summary>
1302        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
1303        [DataMemberAttribute()]
1304        public global::System.Byte[] Code
1305        {
1306            get
1307            {
1308                return StructuralObject.GetValidValue(_Code);
1309            }
1310            set
1311            {
1312                if (!StructuralObject.BinaryEquals(_Code, value))
1313                {
1314                    OnCodeChanging(value);
1315                    ReportPropertyChanging(""Code"");
1316                    _Code = StructuralObject.SetValidValue(value, false, ""Code"");
1317                    ReportPropertyChanged(""Code"");
1318                    OnCodeChanged();
1319                }
1320            }
1321        }
1322        private global::System.Byte[] _Code;
1323        partial void OnCodeChanging(global::System.Byte[] value);
1324        partial void OnCodeChanged();
1325    
1326        /// <summary>
1327        /// No Metadata Documentation available.
1328        /// </summary>
1329        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
1330        [DataMemberAttribute()]
1331        public global::System.String RegisteredTo
1332        {
1333            get
1334            {
1335                return _RegisteredTo;
1336            }
1337            set
1338            {
1339                OnRegisteredToChanging(value);
1340                ReportPropertyChanging(""RegisteredTo"");
1341                _RegisteredTo = StructuralObject.SetValidValue(value, false, ""RegisteredTo"");
1342                ReportPropertyChanged(""RegisteredTo"");
1343                OnRegisteredToChanged();
1344            }
1345        }
1346        private global::System.String _RegisteredTo;
1347        partial void OnRegisteredToChanging(global::System.String value);
1348        partial void OnRegisteredToChanged();
1349
1350        #endregion
1351
1352    }
1353    
1354    /// <summary>
1355    /// No Metadata Documentation available.
1356    /// </summary>
1357    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""BarcodeMm"")]
1358    [Serializable()]
1359    [DataContractAttribute(IsReference=true)]
1360    public partial class BarcodeMm : EntityObject
1361    {
1362        #region Factory Method
1363    
1364        /// <summary>
1365        /// Create a new BarcodeMm object.
1366        /// </summary>
1367        /// <param name=""code"">Initial value of the Code property.</param>
1368        /// <param name=""productId"">Initial value of the ProductId property.</param>
1369        /// <param name=""text"">Initial value of the Text property.</param>
1370        public static BarcodeMm CreateBarcodeMm(global::System.Byte[] code, global::System.Int32 productId, global::System.String text)
1371        {
1372            BarcodeMm barcodeMm = new BarcodeMm();
1373            barcodeMm.Code = code;
1374            barcodeMm.ProductId = productId;
1375            barcodeMm.Text = text;
1376            return barcodeMm;
1377        }
1378
1379        #endregion
1380
1381        #region Simple Properties
1382    
1383        /// <summary>
1384        /// No Metadata Documentation available.
1385        /// </summary>
1386        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
1387        [DataMemberAttribute()]
1388        public global::System.Byte[] Code
1389        {
1390            get
1391            {
1392                return StructuralObject.GetValidValue(_Code);
1393            }
1394            set
1395            {
1396                if (!StructuralObject.BinaryEquals(_Code, value))
1397                {
1398                    OnCodeChanging(value);
1399                    ReportPropertyChanging(""Code"");
1400                    _Code = StructuralObject.SetValidValue(value, false, ""Code"");
1401                    ReportPropertyChanged(""Code"");
1402                    OnCodeChanged();
1403                }
1404            }
1405        }
1406        private global::System.Byte[] _Code;
1407        partial void OnCodeChanging(global::System.Byte[] value);
1408        partial void OnCodeChanged();
1409    
1410        /// <summary>
1411        /// No Metadata Documentation available.
1412        /// </summary>
1413        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
1414        [DataMemberAttribute()]
1415        public global::System.Int32 ProductId
1416        {
1417            get
1418            {
1419                return _ProductId;
1420            }
1421            set
1422            {
1423                OnProductIdChanging(value);
1424                ReportPropertyChanging(""ProductId"");
1425                _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
1426                ReportPropertyChanged(""ProductId"");
1427                OnProductIdChanged();
1428            }
1429        }
1430        private global::System.Int32 _ProductId;
1431        partial void OnProductIdChanging(global::System.Int32 value);
1432        partial void OnProductIdChanged();
1433    
1434        /// <summary>
1435        /// No Metadata Documentation available.
1436        /// </summary>
1437        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
1438        [DataMemberAttribute()]
1439        public global::System.String Text
1440        {
1441            get
1442            {
1443                return _Text;
1444            }
1445            set
1446            {
1447                OnTextChanging(value);
1448                ReportPropertyChanging(""Text"");
1449                _Text = StructuralObject.SetValidValue(value, false, ""Text"");
1450                ReportPropertyChanged(""Text"");
1451                OnTextChanged();
1452            }
1453        }
1454        private global::System.String _Text;
1455        partial void OnTextChanging(global::System.String value);
1456        partial void OnTextChanged();
1457
1458        #endregion
1459
1460        #region Navigation Properties
1461    
1462        /// <summary>
1463        /// No Metadata Documentation available.
1464        /// </summary>
1465        [XmlIgnoreAttribute()]
1466        [SoapIgnoreAttribute()]
1467        [DataMemberAttribute()]
1468        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_Barcodes"", ""Product"")]
1469        public ProductMm Product
1470        {
1471            get
1472            {
1473                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_Barcodes"", ""Product"").Value;
1474            }
1475            set
1476            {
1477                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_Barcodes"", ""Product"").Value = value;
1478            }
1479        }
1480        /// <summary>
1481        /// No Metadata Documentation available.
1482        /// </summary>
1483        [BrowsableAttribute(false)]
1484        [DataMemberAttribute()]
1485        public EntityReference<ProductMm> ProductReference
1486        {
1487            get
1488            {
1489                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_Barcodes"", ""Product"");
1490            }
1491            set
1492            {
1493                if ((value != null))
1494                {
1495                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductMm>(""MonsterNamespace.Product_Barcodes"", ""Product"", value);
1496                }
1497            }
1498        }
1499    
1500        /// <summary>
1501        /// No Metadata Documentation available.
1502        /// </summary>
1503        [XmlIgnoreAttribute()]
1504        [SoapIgnoreAttribute()]
1505        [DataMemberAttribute()]
1506        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Barcode_IncorrectScanExpected"", ""Expected"")]
1507        public EntityCollection<IncorrectScanMm> BadScans
1508        {
1509            get
1510            {
1511                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<IncorrectScanMm>(""MonsterNamespace.Barcode_IncorrectScanExpected"", ""Expected"");
1512            }
1513            set
1514            {
1515                if ((value != null))
1516                {
1517                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<IncorrectScanMm>(""MonsterNamespace.Barcode_IncorrectScanExpected"", ""Expected"", value);
1518                }
1519            }
1520        }
1521    
1522        /// <summary>
1523        /// No Metadata Documentation available.
1524        /// </summary>
1525        [XmlIgnoreAttribute()]
1526        [SoapIgnoreAttribute()]
1527        [DataMemberAttribute()]
1528        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Barcode_BarcodeDetail"", ""BarcodeDetail"")]
1529        public BarcodeDetailMm Detail
1530        {
1531            get
1532            {
1533                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeDetailMm>(""MonsterNamespace.Barcode_BarcodeDetail"", ""BarcodeDetail"").Value;
1534            }
1535            set
1536            {
1537                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeDetailMm>(""MonsterNamespace.Barcode_BarcodeDetail"", ""BarcodeDetail"").Value = value;
1538            }
1539        }
1540        /// <summary>
1541        /// No Metadata Documentation available.
1542        /// </summary>
1543        [BrowsableAttribute(false)]
1544        [DataMemberAttribute()]
1545        public EntityReference<BarcodeDetailMm> DetailReference
1546        {
1547            get
1548            {
1549                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeDetailMm>(""MonsterNamespace.Barcode_BarcodeDetail"", ""BarcodeDetail"");
1550            }
1551            set
1552            {
1553                if ((value != null))
1554                {
1555                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<BarcodeDetailMm>(""MonsterNamespace.Barcode_BarcodeDetail"", ""BarcodeDetail"", value);
1556                }
1557            }
1558        }
1559
1560        #endregion
1561
1562    }
1563    
1564    /// <summary>
1565    /// No Metadata Documentation available.
1566    /// </summary>
1567    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ComplaintMm"")]
1568    [Serializable()]
1569    [DataContractAttribute(IsReference=true)]
1570    public partial class ComplaintMm : EntityObject
1571    {
1572        #region Factory Method
1573    
1574        /// <summary>
1575        /// Create a new ComplaintMm object.
1576        /// </summary>
1577        /// <param name=""complaintId"">Initial value of the ComplaintId property.</param>
1578        /// <param name=""logged"">Initial value of the Logged property.</param>
1579        /// <param name=""details"">Initial value of the Details property.</param>
1580        public static ComplaintMm CreateComplaintMm(global::System.Int32 complaintId, global::System.DateTime logged, global::System.String details)
1581        {
1582            ComplaintMm complaintMm = new ComplaintMm();
1583            complaintMm.ComplaintId = complaintId;
1584            complaintMm.Logged = logged;
1585            complaintMm.Details = details;
1586            return complaintMm;
1587        }
1588
1589        #endregion
1590
1591        #region Simple Properties
1592    
1593        /// <summary>
1594        /// No Metadata Documentation available.
1595        /// </summary>
1596        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
1597        [DataMemberAttribute()]
1598        public global::System.Int32 ComplaintId
1599        {
1600            get
1601            {
1602                return _ComplaintId;
1603            }
1604            set
1605            {
1606                if (_ComplaintId != value)
1607                {
1608                    OnComplaintIdChanging(value);
1609                    ReportPropertyChanging(""ComplaintId"");
1610                    _ComplaintId = StructuralObject.SetValidValue(value, ""ComplaintId"");
1611                    ReportPropertyChanged(""ComplaintId"");
1612                    OnComplaintIdChanged();
1613                }
1614            }
1615        }
1616        private global::System.Int32 _ComplaintId;
1617        partial void OnComplaintIdChanging(global::System.Int32 value);
1618        partial void OnComplaintIdChanged();
1619    
1620        /// <summary>
1621        /// No Metadata Documentation available.
1622        /// </summary>
1623        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
1624        [DataMemberAttribute()]
1625        public Nullable<global::System.Int32> CustomerId
1626        {
1627            get
1628            {
1629                return _CustomerId;
1630            }
1631            set
1632            {
1633                OnCustomerIdChanging(value);
1634                ReportPropertyChanging(""CustomerId"");
1635                _CustomerId = StructuralObject.SetValidValue(value, ""CustomerId"");
1636                ReportPropertyChanged(""CustomerId"");
1637                OnCustomerIdChanged();
1638            }
1639        }
1640        private Nullable<global::System.Int32> _CustomerId;
1641        partial void OnCustomerIdChanging(Nullable<global::System.Int32> value);
1642        partial void OnCustomerIdChanged();
1643    
1644        /// <summary>
1645        /// No Metadata Documentation available.
1646        /// </summary>
1647        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
1648        [DataMemberAttribute()]
1649        public global::System.DateTime Logged
1650        {
1651            get
1652            {
1653                return _Logged;
1654            }
1655            set
1656            {
1657                OnLoggedChanging(value);
1658                ReportPropertyChanging(""Logged"");
1659                _Logged = StructuralObject.SetValidValue(value, ""Logged"");
1660                ReportPropertyChanged(""Logged"");
1661                OnLoggedChanged();
1662            }
1663        }
1664        private global::System.DateTime _Logged;
1665        partial void OnLoggedChanging(global::System.DateTime value);
1666        partial void OnLoggedChanged();
1667    
1668        /// <summary>
1669        /// No Metadata Documentation available.
1670        /// </summary>
1671        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
1672        [DataMemberAttribute()]
1673        public global::System.String Details
1674        {
1675            get
1676            {
1677                return _Details;
1678            }
1679            set
1680            {
1681                OnDetailsChanging(value);
1682                ReportPropertyChanging(""Details"");
1683                _Details = StructuralObject.SetValidValue(value, false, ""Details"");
1684                ReportPropertyChanged(""Details"");
1685                OnDetailsChanged();
1686            }
1687        }
1688        private global::System.String _Details;
1689        partial void OnDetailsChanging(global::System.String value);
1690        partial void OnDetailsChanged();
1691
1692        #endregion
1693
1694        #region Navigation Properties
1695    
1696        /// <summary>
1697        /// No Metadata Documentation available.
1698        /// </summary>
1699        [XmlIgnoreAttribute()]
1700        [SoapIgnoreAttribute()]
1701        [DataMemberAttribute()]
1702        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Customer_Complaints"", ""Customer"")]
1703        public CustomerMm Customer
1704        {
1705            get
1706            {
1707                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Complaints"", ""Customer"").Value;
1708            }
1709            set
1710            {
1711                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Complaints"", ""Customer"").Value = value;
1712            }
1713        }
1714        /// <summary>
1715        /// No Metadata Documentation available.
1716        /// </summary>
1717        [BrowsableAttribute(false)]
1718        [DataMemberAttribute()]
1719        public EntityReference<CustomerMm> CustomerReference
1720        {
1721            get
1722            {
1723                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Complaints"", ""Customer"");
1724            }
1725            set
1726            {
1727                if ((value != null))
1728                {
1729                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Complaints"", ""Customer"", value);
1730                }
1731            }
1732        }
1733    
1734        /// <summary>
1735        /// No Metadata Documentation available.
1736        /// </summary>
1737        [XmlIgnoreAttribute()]
1738        [SoapIgnoreAttribute()]
1739        [DataMemberAttribute()]
1740        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Complaint_Resolution"", ""Resolution"")]
1741        public ResolutionMm Resolution
1742        {
1743            get
1744            {
1745                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ResolutionMm>(""MonsterNamespace.Complaint_Resolution"", ""Resolution"").Value;
1746            }
1747            set
1748            {
1749                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ResolutionMm>(""MonsterNamespace.Complaint_Resolution"", ""Resolution"").Value = value;
1750            }
1751        }
1752        /// <summary>
1753        /// No Metadata Documentation available.
1754        /// </summary>
1755        [BrowsableAttribute(false)]
1756        [DataMemberAttribute()]
1757        public EntityReference<ResolutionMm> ResolutionReference
1758        {
1759            get
1760            {
1761                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ResolutionMm>(""MonsterNamespace.Complaint_Resolution"", ""Resolution"");
1762            }
1763            set
1764            {
1765                if ((value != null))
1766                {
1767                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ResolutionMm>(""MonsterNamespace.Complaint_Resolution"", ""Resolution"", value);
1768                }
1769            }
1770        }
1771
1772        #endregion
1773
1774    }
1775    
1776    /// <summary>
1777    /// No Metadata Documentation available.
1778    /// </summary>
1779    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ComputerDetailMm"")]
1780    [Serializable()]
1781    [DataContractAttribute(IsReference=true)]
1782    public partial class ComputerDetailMm : EntityObject
1783    {
1784        #region Factory Method
1785    
1786        /// <summary>
1787        /// Create a new ComputerDetailMm object.
1788        /// </summary>
1789        /// <param name=""computerDetailId"">Initial value of the ComputerDetailId property.</param>
1790        /// <param name=""manufacturer"">Initial value of the Manufacturer property.</param>
1791        /// <param name=""model"">Initial value of the Model property.</param>
1792        /// <param name=""serial"">Initial value of the Serial property.</param>
1793        /// <param name=""specifications"">Initial value of the Specifications property.</param>
1794        /// <param name=""purchaseDate"">Initial value of the PurchaseDate property.</param>
1795        /// <param name=""dimensions"">Initial value of the Dimensions property.</param>
1796        public static ComputerDetailMm CreateComputerDetailMm(global::System.Int32 computerDetailId, global::System.String manufacturer, global::System.String model, global::System.String serial, global::System.String specifications, global::System.DateTime purchaseDate, DimensionsMm dimensions)
1797        {
1798            ComputerDetailMm computerDetailMm = new ComputerDetailMm();
1799            computerDetailMm.ComputerDetailId = computerDetailId;
1800            computerDetailMm.Manufacturer = manufacturer;
1801            computerDetailMm.Model = model;
1802            computerDetailMm.Serial = serial;
1803            computerDetailMm.Specifications = specifications;
1804            computerDetailMm.PurchaseDate = purchaseDate;
1805            computerDetailMm.Dimensions = StructuralObject.VerifyComplexObjectIsNotNull(dimensions, ""Dimensions"");
1806            return computerDetailMm;
1807        }
1808
1809        #endregion
1810
1811        #region Simple Properties
1812    
1813        /// <summary>
1814        /// No Metadata Documentation available.
1815        /// </summary>
1816        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
1817        [DataMemberAttribute()]
1818        public global::System.Int32 ComputerDetailId
1819        {
1820            get
1821            {
1822                return _ComputerDetailId;
1823            }
1824            set
1825            {
1826                if (_ComputerDetailId != value)
1827                {
1828                    OnComputerDetailIdChanging(value);
1829                    ReportPropertyChanging(""ComputerDetailId"");
1830                    _ComputerDetailId = StructuralObject.SetValidValue(value, ""ComputerDetailId"");
1831                    ReportPropertyChanged(""ComputerDetailId"");
1832                    OnComputerDetailIdChanged();
1833                }
1834            }
1835        }
1836        private global::System.Int32 _ComputerDetailId;
1837        partial void OnComputerDetailIdChanging(global::System.Int32 value);
1838        partial void OnComputerDetailIdChanged();
1839    
1840        /// <summary>
1841        /// No Metadata Documentation available.
1842        /// </summary>
1843        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
1844        [DataMemberAttribute()]
1845        public global::System.String Manufacturer
1846        {
1847            get
1848            {
1849                return _Manufacturer;
1850            }
1851            set
1852            {
1853                OnManufacturerChanging(value);
1854                ReportPropertyChanging(""Manufacturer"");
1855                _Manufacturer = StructuralObject.SetValidValue(value, false, ""Manufacturer"");
1856                ReportPropertyChanged(""Manufacturer"");
1857                OnManufacturerChanged();
1858            }
1859        }
1860        private global::System.String _Manufacturer;
1861        partial void OnManufacturerChanging(global::System.String value);
1862        partial void OnManufacturerChanged();
1863    
1864        /// <summary>
1865        /// No Metadata Documentation available.
1866        /// </summary>
1867        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
1868        [DataMemberAttribute()]
1869        public global::System.String Model
1870        {
1871            get
1872            {
1873                return _Model;
1874            }
1875            set
1876            {
1877                OnModelChanging(value);
1878                ReportPropertyChanging(""Model"");
1879                _Model = StructuralObject.SetValidValue(value, false, ""Model"");
1880                ReportPropertyChanged(""Model"");
1881                OnModelChanged();
1882            }
1883        }
1884        private global::System.String _Model;
1885        partial void OnModelChanging(global::System.String value);
1886        partial void OnModelChanged();
1887    
1888        /// <summary>
1889        /// No Metadata Documentation available.
1890        /// </summary>
1891        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
1892        [DataMemberAttribute()]
1893        public global::System.String Serial
1894        {
1895            get
1896            {
1897                return _Serial;
1898            }
1899            set
1900            {
1901                OnSerialChanging(value);
1902                ReportPropertyChanging(""Serial"");
1903                _Serial = StructuralObject.SetValidValue(value, false, ""Serial"");
1904                ReportPropertyChanged(""Serial"");
1905                OnSerialChanged();
1906            }
1907        }
1908        private global::System.String _Serial;
1909        partial void OnSerialChanging(global::System.String value);
1910        partial void OnSerialChanged();
1911    
1912        /// <summary>
1913        /// No Metadata Documentation available.
1914        /// </summary>
1915        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
1916        [DataMemberAttribute()]
1917        public global::System.String Specifications
1918        {
1919            get
1920            {
1921                return _Specifications;
1922            }
1923            set
1924            {
1925                OnSpecificationsChanging(value);
1926                ReportPropertyChanging(""Specifications"");
1927                _Specifications = StructuralObject.SetValidValue(value, false, ""Specifications"");
1928                ReportPropertyChanged(""Specifications"");
1929                OnSpecificationsChanged();
1930            }
1931        }
1932        private global::System.String _Specifications;
1933        partial void OnSpecificationsChanging(global::System.String value);
1934        partial void OnSpecificationsChanged();
1935    
1936        /// <summary>
1937        /// No Metadata Documentation available.
1938        /// </summary>
1939        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
1940        [DataMemberAttribute()]
1941        public global::System.DateTime PurchaseDate
1942        {
1943            get
1944            {
1945                return _PurchaseDate;
1946            }
1947            set
1948            {
1949                OnPurchaseDateChanging(value);
1950                ReportPropertyChanging(""PurchaseDate"");
1951                _PurchaseDate = StructuralObject.SetValidValue(value, ""PurchaseDate"");
1952                ReportPropertyChanged(""PurchaseDate"");
1953                OnPurchaseDateChanged();
1954            }
1955        }
1956        private global::System.DateTime _PurchaseDate;
1957        partial void OnPurchaseDateChanging(global::System.DateTime value);
1958        partial void OnPurchaseDateChanged();
1959
1960        #endregion
1961
1962        #region Complex Properties
1963    
1964        /// <summary>
1965        /// No Metadata Documentation available.
1966        /// </summary>
1967        [EdmComplexPropertyAttribute()]
1968        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
1969        [XmlElement(IsNullable=true)]
1970        [SoapElement(IsNullable=true)]
1971        [DataMemberAttribute()]
1972        public DimensionsMm Dimensions
1973        {
1974            get
1975            {
1976                _Dimensions = GetValidValue(_Dimensions, ""Dimensions"", false, _DimensionsInitialized);
1977                _DimensionsInitialized = true;
1978                return _Dimensions;
1979            }
1980            set
1981            {
1982                OnDimensionsChanging(value);
1983                ReportPropertyChanging(""Dimensions"");
1984                _Dimensions = SetValidValue(_Dimensions, value, ""Dimensions"");
1985                _DimensionsInitialized = true;
1986                ReportPropertyChanged(""Dimensions"");
1987                OnDimensionsChanged();
1988            }
1989        }
1990        private DimensionsMm _Dimensions;
1991        private bool _DimensionsInitialized;
1992        partial void OnDimensionsChanging(DimensionsMm value);
1993        partial void OnDimensionsChanged();
1994
1995        #endregion
1996
1997        #region Navigation Properties
1998    
1999        /// <summary>
2000        /// No Metadata Documentation available.
2001        /// </summary>
2002        [XmlIgnoreAttribute()]
2003        [SoapIgnoreAttribute()]
2004        [DataMemberAttribute()]
2005        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Computer_ComputerDetail"", ""Computer"")]
2006        public ComputerMm Computer
2007        {
2008            get
2009            {
2010                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComputerMm>(""MonsterNamespace.Computer_ComputerDetail"", ""Computer"").Value;
2011            }
2012            set
2013            {
2014                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComputerMm>(""MonsterNamespace.Computer_ComputerDetail"", ""Computer"").Value = value;
2015            }
2016        }
2017        /// <summary>
2018        /// No Metadata Documentation available.
2019        /// </summary>
2020        [BrowsableAttribute(false)]
2021        [DataMemberAttribute()]
2022        public EntityReference<ComputerMm> ComputerReference
2023        {
2024            get
2025            {
2026                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComputerMm>(""MonsterNamespace.Computer_ComputerDetail"", ""Computer"");
2027            }
2028            set
2029            {
2030                if ((value != null))
2031                {
2032                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ComputerMm>(""MonsterNamespace.Computer_ComputerDetail"", ""Computer"", value);
2033                }
2034            }
2035        }
2036
2037        #endregion
2038
2039    }
2040    
2041    /// <summary>
2042    /// No Metadata Documentation available.
2043    /// </summary>
2044    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ComputerMm"")]
2045    [Serializable()]
2046    [DataContractAttribute(IsReference=true)]
2047    public partial class ComputerMm : EntityObject
2048    {
2049        #region Factory Method
2050    
2051        /// <summary>
2052        /// Create a new ComputerMm object.
2053        /// </summary>
2054        /// <param name=""computerId"">Initial value of the ComputerId property.</param>
2055        /// <param name=""name"">Initial value of the Name property.</param>
2056        public static ComputerMm CreateComputerMm(global::System.Int32 computerId, global::System.String name)
2057        {
2058            ComputerMm computerMm = new ComputerMm();
2059            computerMm.ComputerId = computerId;
2060            computerMm.Name = name;
2061            return computerMm;
2062        }
2063
2064        #endregion
2065
2066        #region Simple Properties
2067    
2068        /// <summary>
2069        /// No Metadata Documentation available.
2070        /// </summary>
2071        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
2072        [DataMemberAttribute()]
2073        public global::System.Int32 ComputerId
2074        {
2075            get
2076            {
2077                return _ComputerId;
2078            }
2079            set
2080            {
2081                if (_ComputerId != value)
2082                {
2083                    OnComputerIdChanging(value);
2084                    ReportPropertyChanging(""ComputerId"");
2085                    _ComputerId = StructuralObject.SetValidValue(value, ""ComputerId"");
2086                    ReportPropertyChanged(""ComputerId"");
2087                    OnComputerIdChanged();
2088                }
2089            }
2090        }
2091        private global::System.Int32 _ComputerId;
2092        partial void OnComputerIdChanging(global::System.Int32 value);
2093        partial void OnComputerIdChanged();
2094    
2095        /// <summary>
2096        /// No Metadata Documentation available.
2097        /// </summary>
2098        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
2099        [DataMemberAttribute()]
2100        public global::System.String Name
2101        {
2102            get
2103            {
2104                return _Name;
2105            }
2106            set
2107            {
2108                OnNameChanging(value);
2109                ReportPropertyChanging(""Name"");
2110                _Name = StructuralObject.SetValidValue(value, false, ""Name"");
2111                ReportPropertyChanged(""Name"");
2112                OnNameChanged();
2113            }
2114        }
2115        private global::System.String _Name;
2116        partial void OnNameChanging(global::System.String value);
2117        partial void OnNameChanged();
2118
2119        #endregion
2120
2121        #region Navigation Properties
2122    
2123        /// <summary>
2124        /// No Metadata Documentation available.
2125        /// </summary>
2126        [XmlIgnoreAttribute()]
2127        [SoapIgnoreAttribute()]
2128        [DataMemberAttribute()]
2129        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Computer_ComputerDetail"", ""ComputerDetail"")]
2130        public ComputerDetailMm ComputerDetail
2131        {
2132            get
2133            {
2134                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComputerDetailMm>(""MonsterNamespace.Computer_ComputerDetail"", ""ComputerDetail"").Value;
2135            }
2136            set
2137            {
2138                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComputerDetailMm>(""MonsterNamespace.Computer_ComputerDetail"", ""ComputerDetail"").Value = value;
2139            }
2140        }
2141        /// <summary>
2142        /// No Metadata Documentation available.
2143        /// </summary>
2144        [BrowsableAttribute(false)]
2145        [DataMemberAttribute()]
2146        public EntityReference<ComputerDetailMm> ComputerDetailReference
2147        {
2148            get
2149            {
2150                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComputerDetailMm>(""MonsterNamespace.Computer_ComputerDetail"", ""ComputerDetail"");
2151            }
2152            set
2153            {
2154                if ((value != null))
2155                {
2156                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ComputerDetailMm>(""MonsterNamespace.Computer_ComputerDetail"", ""ComputerDetail"", value);
2157                }
2158            }
2159        }
2160
2161        #endregion
2162
2163    }
2164    
2165    /// <summary>
2166    /// No Metadata Documentation available.
2167    /// </summary>
2168    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""CustomerInfoMm"")]
2169    [Serializable()]
2170    [DataContractAttribute(IsReference=true)]
2171    public partial class CustomerInfoMm : EntityObject
2172    {
2173        #region Factory Method
2174    
2175        /// <summary>
2176        /// Create a new CustomerInfoMm object.
2177        /// </summary>
2178        /// <param name=""customerInfoId"">Initial value of the CustomerInfoId property.</param>
2179        /// <param name=""information"">Initial value of the Information property.</param>
2180        public static CustomerInfoMm CreateCustomerInfoMm(global::System.Int32 customerInfoId, global::System.String information)
2181        {
2182            CustomerInfoMm customerInfoMm = new CustomerInfoMm();
2183            customerInfoMm.CustomerInfoId = customerInfoId;
2184            customerInfoMm.Information = information;
2185            return customerInfoMm;
2186        }
2187
2188        #endregion
2189
2190        #region Simple Properties
2191    
2192        /// <summary>
2193        /// No Metadata Documentation available.
2194        /// </summary>
2195        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
2196        [DataMemberAttribute()]
2197        public global::System.Int32 CustomerInfoId
2198        {
2199            get
2200            {
2201                return _CustomerInfoId;
2202            }
2203            set
2204            {
2205                if (_CustomerInfoId != value)
2206                {
2207                    OnCustomerInfoIdChanging(value);
2208                    ReportPropertyChanging(""CustomerInfoId"");
2209                    _CustomerInfoId = StructuralObject.SetValidValue(value, ""CustomerInfoId"");
2210                    ReportPropertyChanged(""CustomerInfoId"");
2211                    OnCustomerInfoIdChanged();
2212                }
2213            }
2214        }
2215        private global::System.Int32 _CustomerInfoId;
2216        partial void OnCustomerInfoIdChanging(global::System.Int32 value);
2217        partial void OnCustomerInfoIdChanged();
2218    
2219        /// <summary>
2220        /// No Metadata Documentation available.
2221        /// </summary>
2222        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
2223        [DataMemberAttribute()]
2224        public global::System.String Information
2225        {
2226            get
2227            {
2228                return _Information;
2229            }
2230            set
2231            {
2232                OnInformationChanging(value);
2233                ReportPropertyChanging(""Information"");
2234                _Information = StructuralObject.SetValidValue(value, false, ""Information"");
2235                ReportPropertyChanged(""Information"");
2236                OnInformationChanged();
2237            }
2238        }
2239        private global::System.String _Information;
2240        partial void OnInformationChanging(global::System.String value);
2241        partial void OnInformationChanged();
2242
2243        #endregion
2244
2245    }
2246    
2247    /// <summary>
2248    /// No Metadata Documentation available.
2249    /// </summary>
2250    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""CustomerMm"")]
2251    [Serializable()]
2252    [DataContractAttribute(IsReference=true)]
2253    public partial class CustomerMm : EntityObject
2254    {
2255        #region Factory Method
2256    
2257        /// <summary>
2258        /// Create a new CustomerMm object.
2259        /// </summary>
2260        /// <param name=""customerId"">Initial value of the CustomerId property.</param>
2261        /// <param name=""name"">Initial value of the Name property.</param>
2262        /// <param name=""contactInfo"">Initial value of the ContactInfo property.</param>
2263        /// <param name=""auditing"">Initial value of the Auditing property.</param>
2264        public static CustomerMm CreateCustomerMm(global::System.Int32 customerId, global::System.String name, ContactDetailsMm contactInfo, AuditInfoMm auditing)
2265        {
2266            CustomerMm customerMm = new CustomerMm();
2267            customerMm.CustomerId = customerId;
2268            customerMm.Name = name;
2269            customerMm.ContactInfo = StructuralObject.VerifyComplexObjectIsNotNull(contactInfo, ""ContactInfo"");
2270            customerMm.Auditing = StructuralObject.VerifyComplexObjectIsNotNull(auditing, ""Auditing"");
2271            return customerMm;
2272        }
2273
2274        #endregion
2275
2276        #region Simple Properties
2277    
2278        /// <summary>
2279        /// No Metadata Documentation available.
2280        /// </summary>
2281        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
2282        [DataMemberAttribute()]
2283        public global::System.Int32 CustomerId
2284        {
2285            get
2286            {
2287                return _CustomerId;
2288            }
2289            set
2290            {
2291                if (_CustomerId != value)
2292                {
2293                    OnCustomerIdChanging(value);
2294                    ReportPropertyChanging(""CustomerId"");
2295                    _CustomerId = StructuralObject.SetValidValue(value, ""CustomerId"");
2296                    ReportPropertyChanged(""CustomerId"");
2297                    OnCustomerIdChanged();
2298                }
2299            }
2300        }
2301        private global::System.Int32 _CustomerId;
2302        partial void OnCustomerIdChanging(global::System.Int32 value);
2303        partial void OnCustomerIdChanged();
2304    
2305        /// <summary>
2306        /// No Metadata Documentation available.
2307        /// </summary>
2308        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
2309        [DataMemberAttribute()]
2310        public global::System.String Name
2311        {
2312            get
2313            {
2314                return _Name;
2315            }
2316            set
2317            {
2318                OnNameChanging(value);
2319                ReportPropertyChanging(""Name"");
2320                _Name = StructuralObject.SetValidValue(value, false, ""Name"");
2321                ReportPropertyChanged(""Name"");
2322                OnNameChanged();
2323            }
2324        }
2325        private global::System.String _Name;
2326        partial void OnNameChanging(global::System.String value);
2327        partial void OnNameChanged();
2328
2329        #endregion
2330
2331        #region Complex Properties
2332    
2333        /// <summary>
2334        /// No Metadata Documentation available.
2335        /// </summary>
2336        [EdmComplexPropertyAttribute()]
2337        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
2338        [XmlElement(IsNullable=true)]
2339        [SoapElement(IsNullable=true)]
2340        [DataMemberAttribute()]
2341        public ContactDetailsMm ContactInfo
2342        {
2343            get
2344            {
2345                _ContactInfo = GetValidValue(_ContactInfo, ""ContactInfo"", false, _ContactInfoInitialized);
2346                _ContactInfoInitialized = true;
2347                return _ContactInfo;
2348            }
2349            set
2350            {
2351                OnContactInfoChanging(value);
2352                ReportPropertyChanging(""ContactInfo"");
2353                _ContactInfo = SetValidValue(_ContactInfo, value, ""ContactInfo"");
2354                _ContactInfoInitialized = true;
2355                ReportPropertyChanged(""ContactInfo"");
2356                OnContactInfoChanged();
2357            }
2358        }
2359        private ContactDetailsMm _ContactInfo;
2360        private bool _ContactInfoInitialized;
2361        partial void OnContactInfoChanging(ContactDetailsMm value);
2362        partial void OnContactInfoChanged();
2363    
2364        /// <summary>
2365        /// No Metadata Documentation available.
2366        /// </summary>
2367        [EdmComplexPropertyAttribute()]
2368        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
2369        [XmlElement(IsNullable=true)]
2370        [SoapElement(IsNullable=true)]
2371        [DataMemberAttribute()]
2372        public AuditInfoMm Auditing
2373        {
2374            get
2375            {
2376                _Auditing = GetValidValue(_Auditing, ""Auditing"", false, _AuditingInitialized);
2377                _AuditingInitialized = true;
2378                return _Auditing;
2379            }
2380            set
2381            {
2382                OnAuditingChanging(value);
2383                ReportPropertyChanging(""Auditing"");
2384                _Auditing = SetValidValue(_Auditing, value, ""Auditing"");
2385                _AuditingInitialized = true;
2386                ReportPropertyChanged(""Auditing"");
2387                OnAuditingChanged();
2388            }
2389        }
2390        private AuditInfoMm _Auditing;
2391        private bool _AuditingInitialized;
2392        partial void OnAuditingChanging(AuditInfoMm value);
2393        partial void OnAuditingChanged();
2394
2395        #endregion
2396
2397        #region Navigation Properties
2398    
2399        /// <summary>
2400        /// No Metadata Documentation available.
2401        /// </summary>
2402        [XmlIgnoreAttribute()]
2403        [SoapIgnoreAttribute()]
2404        [DataMemberAttribute()]
2405        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Customer_Orders"", ""Order"")]
2406        public EntityCollection<OrderMm> Orders
2407        {
2408            get
2409            {
2410                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<OrderMm>(""MonsterNamespace.Customer_Orders"", ""Order"");
2411            }
2412            set
2413            {
2414                if ((value != null))
2415                {
2416                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<OrderMm>(""MonsterNamespace.Customer_Orders"", ""Order"", value);
2417                }
2418            }
2419        }
2420    
2421        /// <summary>
2422        /// No Metadata Documentation available.
2423        /// </summary>
2424        [XmlIgnoreAttribute()]
2425        [SoapIgnoreAttribute()]
2426        [DataMemberAttribute()]
2427        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Customer_Logins"", ""Logins"")]
2428        public EntityCollection<LoginMm> Logins
2429        {
2430            get
2431            {
2432                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<LoginMm>(""MonsterNamespace.Customer_Logins"", ""Logins"");
2433            }
2434            set
2435            {
2436                if ((value != null))
2437                {
2438                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<LoginMm>(""MonsterNamespace.Customer_Logins"", ""Logins"", value);
2439                }
2440            }
2441        }
2442    
2443        /// <summary>
2444        /// No Metadata Documentation available.
2445        /// </summary>
2446        [XmlIgnoreAttribute()]
2447        [SoapIgnoreAttribute()]
2448        [DataMemberAttribute()]
2449        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Husband_Wife"", ""Husband"")]
2450        public CustomerMm Husband
2451        {
2452            get
2453            {
2454                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Husband"").Value;
2455            }
2456            set
2457            {
2458                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Husband"").Value = value;
2459            }
2460        }
2461        /// <summary>
2462        /// No Metadata Documentation available.
2463        /// </summary>
2464        [BrowsableAttribute(false)]
2465        [DataMemberAttribute()]
2466        public EntityReference<CustomerMm> HusbandReference
2467        {
2468            get
2469            {
2470                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Husband"");
2471            }
2472            set
2473            {
2474                if ((value != null))
2475                {
2476                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Husband"", value);
2477                }
2478            }
2479        }
2480    
2481        /// <summary>
2482        /// No Metadata Documentation available.
2483        /// </summary>
2484        [XmlIgnoreAttribute()]
2485        [SoapIgnoreAttribute()]
2486        [DataMemberAttribute()]
2487        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Husband_Wife"", ""Wife"")]
2488        public CustomerMm Wife
2489        {
2490            get
2491            {
2492                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Wife"").Value;
2493            }
2494            set
2495            {
2496                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Wife"").Value = value;
2497            }
2498        }
2499        /// <summary>
2500        /// No Metadata Documentation available.
2501        /// </summary>
2502        [BrowsableAttribute(false)]
2503        [DataMemberAttribute()]
2504        public EntityReference<CustomerMm> WifeReference
2505        {
2506            get
2507            {
2508                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Wife"");
2509            }
2510            set
2511            {
2512                if ((value != null))
2513                {
2514                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CustomerMm>(""MonsterNamespace.Husband_Wife"", ""Wife"", value);
2515                }
2516            }
2517        }
2518    
2519        /// <summary>
2520        /// No Metadata Documentation available.
2521        /// </summary>
2522        [XmlIgnoreAttribute()]
2523        [SoapIgnoreAttribute()]
2524        [DataMemberAttribute()]
2525        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Customer_CustomerInfo"", ""Info"")]
2526        public CustomerInfoMm Info
2527        {
2528            get
2529            {
2530                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerInfoMm>(""MonsterNamespace.Customer_CustomerInfo"", ""Info"").Value;
2531            }
2532            set
2533            {
2534                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerInfoMm>(""MonsterNamespace.Customer_CustomerInfo"", ""Info"").Value = value;
2535            }
2536        }
2537        /// <summary>
2538        /// No Metadata Documentation available.
2539        /// </summary>
2540        [BrowsableAttribute(false)]
2541        [DataMemberAttribute()]
2542        public EntityReference<CustomerInfoMm> InfoReference
2543        {
2544            get
2545            {
2546                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerInfoMm>(""MonsterNamespace.Customer_CustomerInfo"", ""Info"");
2547            }
2548            set
2549            {
2550                if ((value != null))
2551                {
2552                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CustomerInfoMm>(""MonsterNamespace.Customer_CustomerInfo"", ""Info"", value);
2553                }
2554            }
2555        }
2556
2557        #endregion
2558
2559    }
2560    
2561    /// <summary>
2562    /// No Metadata Documentation available.
2563    /// </summary>
2564    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""DiscontinuedProductMm"")]
2565    [Serializable()]
2566    [DataContractAttribute(IsReference=true)]
2567    public partial class DiscontinuedProductMm : ProductMm
2568    {
2569        #region Factory Method
2570    
2571        /// <summary>
2572        /// Create a new DiscontinuedProductMm object.
2573        /// </summary>
2574        /// <param name=""productId"">Initial value of the ProductId property.</param>
2575        /// <param name=""dimensions"">Initial value of the Dimensions property.</param>
2576        /// <param name=""baseConcurrency"">Initial value of the BaseConcurrency property.</param>
2577        /// <param name=""complexConcurrency"">Initial value of the ComplexConcurrency property.</param>
2578        /// <param name=""nestedComplexConcurrency"">Initial value of the NestedComplexConcurrency property.</param>
2579        /// <param name=""discontinued"">Initial value of the Discontinued property.</param>
2580        public static DiscontinuedProductMm CreateDiscontinuedProductMm(global::System.Int32 productId, DimensionsMm dimensions, global::System.String baseConcurrency, ConcurrencyInfoMm complexConcurrency, AuditInfoMm nestedComplexConcurrency, global::System.DateTime discontinued)
2581        {
2582            DiscontinuedProductMm discontinuedProductMm = new DiscontinuedProductMm();
2583            discontinuedProductMm.ProductId = productId;
2584            discontinuedProductMm.Dimensions = StructuralObject.VerifyComplexObjectIsNotNull(dimensions, ""Dimensions"");
2585            discontinuedProductMm.BaseConcurrency = baseConcurrency;
2586            discontinuedProductMm.ComplexConcurrency = StructuralObject.VerifyComplexObjectIsNotNull(complexConcurrency, ""ComplexConcurrency"");
2587            discontinuedProductMm.NestedComplexConcurrency = StructuralObject.VerifyComplexObjectIsNotNull(nestedComplexConcurrency, ""NestedComplexConcurrency"");
2588            discontinuedProductMm.Discontinued = discontinued;
2589            return discontinuedProductMm;
2590        }
2591
2592        #endregion
2593
2594        #region Simple Properties
2595    
2596        /// <summary>
2597        /// No Metadata Documentation available.
2598        /// </summary>
2599        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
2600        [DataMemberAttribute()]
2601        public global::System.DateTime Discontinued
2602        {
2603            get
2604            {
2605                return _Discontinued;
2606            }
2607            set
2608            {
2609                OnDiscontinuedChanging(value);
2610                ReportPropertyChanging(""Discontinued"");
2611                _Discontinued = StructuralObject.SetValidValue(value, ""Discontinued"");
2612                ReportPropertyChanged(""Discontinued"");
2613                OnDiscontinuedChanged();
2614            }
2615        }
2616        private global::System.DateTime _Discontinued;
2617        partial void OnDiscontinuedChanging(global::System.DateTime value);
2618        partial void OnDiscontinuedChanged();
2619    
2620        /// <summary>
2621        /// No Metadata Documentation available.
2622        /// </summary>
2623        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
2624        [DataMemberAttribute()]
2625        public Nullable<global::System.Int32> ReplacementProductId
2626        {
2627            get
2628            {
2629                return _ReplacementProductId;
2630            }
2631            set
2632            {
2633                OnReplacementProductIdChanging(value);
2634                ReportPropertyChanging(""ReplacementProductId"");
2635                _ReplacementProductId = StructuralObject.SetValidValue(value, ""ReplacementProductId"");
2636                ReportPropertyChanged(""ReplacementProductId"");
2637                OnReplacementProductIdChanged();
2638            }
2639        }
2640        private Nullable<global::System.Int32> _ReplacementProductId;
2641        partial void OnReplacementProductIdChanging(Nullable<global::System.Int32> value);
2642        partial void OnReplacementProductIdChanged();
2643
2644        #endregion
2645
2646        #region Navigation Properties
2647    
2648        /// <summary>
2649        /// No Metadata Documentation available.
2650        /// </summary>
2651        [XmlIgnoreAttribute()]
2652        [SoapIgnoreAttribute()]
2653        [DataMemberAttribute()]
2654        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""DiscontinuedProduct_Replacement"", ""Replacement"")]
2655        public ProductMm ReplacedBy
2656        {
2657            get
2658            {
2659                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.DiscontinuedProduct_Replacement"", ""Replacement"").Value;
2660            }
2661            set
2662            {
2663                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.DiscontinuedProduct_Replacement"", ""Replacement"").Value = value;
2664            }
2665        }
2666        /// <summary>
2667        /// No Metadata Documentation available.
2668        /// </summary>
2669        [BrowsableAttribute(false)]
2670        [DataMemberAttribute()]
2671        public EntityReference<ProductMm> ReplacedByReference
2672        {
2673            get
2674            {
2675                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.DiscontinuedProduct_Replacement"", ""Replacement"");
2676            }
2677            set
2678            {
2679                if ((value != null))
2680                {
2681                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductMm>(""MonsterNamespace.DiscontinuedProduct_Replacement"", ""Replacement"", value);
2682                }
2683            }
2684        }
2685
2686        #endregion
2687
2688    }
2689    
2690    /// <summary>
2691    /// No Metadata Documentation available.
2692    /// </summary>
2693    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""DriverMm"")]
2694    [Serializable()]
2695    [DataContractAttribute(IsReference=true)]
2696    public partial class DriverMm : EntityObject
2697    {
2698        #region Factory Method
2699    
2700        /// <summary>
2701        /// Create a new DriverMm object.
2702        /// </summary>
2703        /// <param name=""name"">Initial value of the Name property.</param>
2704        /// <param name=""birthDate"">Initial value of the BirthDate property.</param>
2705        public static DriverMm CreateDriverMm(global::System.String name, global::System.DateTime birthDate)
2706        {
2707            DriverMm driverMm = new DriverMm();
2708            driverMm.Name = name;
2709            driverMm.BirthDate = birthDate;
2710            return driverMm;
2711        }
2712
2713        #endregion
2714
2715        #region Simple Properties
2716    
2717        /// <summary>
2718        /// No Metadata Documentation available.
2719        /// </summary>
2720        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
2721        [DataMemberAttribute()]
2722        public global::System.String Name
2723        {
2724            get
2725            {
2726                return _Name;
2727            }
2728            set
2729            {
2730                if (_Name != value)
2731                {
2732                    OnNameChanging(value);
2733                    ReportPropertyChanging(""Name"");
2734                    _Name = StructuralObject.SetValidValue(value, false, ""Name"");
2735                    ReportPropertyChanged(""Name"");
2736                    OnNameChanged();
2737                }
2738            }
2739        }
2740        private global::System.String _Name;
2741        partial void OnNameChanging(global::System.String value);
2742        partial void OnNameChanged();
2743    
2744        /// <summary>
2745        /// No Metadata Documentation available.
2746        /// </summary>
2747        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
2748        [DataMemberAttribute()]
2749        public global::System.DateTime BirthDate
2750        {
2751            get
2752            {
2753                return _BirthDate;
2754            }
2755            set
2756            {
2757                OnBirthDateChanging(value);
2758                ReportPropertyChanging(""BirthDate"");
2759                _BirthDate = StructuralObject.SetValidValue(value, ""BirthDate"");
2760                ReportPropertyChanged(""BirthDate"");
2761                OnBirthDateChanged();
2762            }
2763        }
2764        private global::System.DateTime _BirthDate;
2765        partial void OnBirthDateChanging(global::System.DateTime value);
2766        partial void OnBirthDateChanged();
2767
2768        #endregion
2769
2770        #region Navigation Properties
2771    
2772        /// <summary>
2773        /// No Metadata Documentation available.
2774        /// </summary>
2775        [XmlIgnoreAttribute()]
2776        [SoapIgnoreAttribute()]
2777        [DataMemberAttribute()]
2778        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Driver_License"", ""License"")]
2779        public LicenseMm License
2780        {
2781            get
2782            {
2783                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LicenseMm>(""MonsterNamespace.Driver_License"", ""License"").Value;
2784            }
2785            set
2786            {
2787                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LicenseMm>(""MonsterNamespace.Driver_License"", ""License"").Value = value;
2788            }
2789        }
2790        /// <summary>
2791        /// No Metadata Documentation available.
2792        /// </summary>
2793        [BrowsableAttribute(false)]
2794        [DataMemberAttribute()]
2795        public EntityReference<LicenseMm> LicenseReference
2796        {
2797            get
2798            {
2799                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LicenseMm>(""MonsterNamespace.Driver_License"", ""License"");
2800            }
2801            set
2802            {
2803                if ((value != null))
2804                {
2805                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LicenseMm>(""MonsterNamespace.Driver_License"", ""License"", value);
2806                }
2807            }
2808        }
2809
2810        #endregion
2811
2812    }
2813    
2814    /// <summary>
2815    /// No Metadata Documentation available.
2816    /// </summary>
2817    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""IncorrectScanMm"")]
2818    [Serializable()]
2819    [DataContractAttribute(IsReference=true)]
2820    public partial class IncorrectScanMm : EntityObject
2821    {
2822        #region Factory Method
2823    
2824        /// <summary>
2825        /// Create a new IncorrectScanMm object.
2826        /// </summary>
2827        /// <param name=""incorrectScanId"">Initial value of the IncorrectScanId property.</param>
2828        /// <param name=""expectedCode"">Initial value of the ExpectedCode property.</param>
2829        /// <param name=""scanDate"">Initial value of the ScanDate property.</param>
2830        /// <param name=""details"">Initial value of the Details property.</param>
2831        public static IncorrectScanMm CreateIncorrectScanMm(global::System.Int32 incorrectScanId, global::System.Byte[] expectedCode, global::System.DateTime scanDate, global::System.String details)
2832        {
2833            IncorrectScanMm incorrectScanMm = new IncorrectScanMm();
2834            incorrectScanMm.IncorrectScanId = incorrectScanId;
2835            incorrectScanMm.ExpectedCode = expectedCode;
2836            incorrectScanMm.ScanDate = scanDate;
2837            incorrectScanMm.Details = details;
2838            return incorrectScanMm;
2839        }
2840
2841        #endregion
2842
2843        #region Simple Properties
2844    
2845        /// <summary>
2846        /// No Metadata Documentation available.
2847        /// </summary>
2848        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
2849        [DataMemberAttribute()]
2850        public global::System.Int32 IncorrectScanId
2851        {
2852            get
2853            {
2854                return _IncorrectScanId;
2855            }
2856            set
2857            {
2858                if (_IncorrectScanId != value)
2859                {
2860                    OnIncorrectScanIdChanging(value);
2861                    ReportPropertyChanging(""IncorrectScanId"");
2862                    _IncorrectScanId = StructuralObject.SetValidValue(value, ""IncorrectScanId"");
2863                    ReportPropertyChanged(""IncorrectScanId"");
2864                    OnIncorrectScanIdChanged();
2865                }
2866            }
2867        }
2868        private global::System.Int32 _IncorrectScanId;
2869        partial void OnIncorrectScanIdChanging(global::System.Int32 value);
2870        partial void OnIncorrectScanIdChanged();
2871    
2872        /// <summary>
2873        /// No Metadata Documentation available.
2874        /// </summary>
2875        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
2876        [DataMemberAttribute()]
2877        public global::System.Byte[] ExpectedCode
2878        {
2879            get
2880            {
2881                return StructuralObject.GetValidValue(_ExpectedCode);
2882            }
2883            set
2884            {
2885                OnExpectedCodeChanging(value);
2886                ReportPropertyChanging(""ExpectedCode"");
2887                _ExpectedCode = StructuralObject.SetValidValue(value, false, ""ExpectedCode"");
2888                ReportPropertyChanged(""ExpectedCode"");
2889                OnExpectedCodeChanged();
2890            }
2891        }
2892        private global::System.Byte[] _ExpectedCode;
2893        partial void OnExpectedCodeChanging(global::System.Byte[] value);
2894        partial void OnExpectedCodeChanged();
2895    
2896        /// <summary>
2897        /// No Metadata Documentation available.
2898        /// </summary>
2899        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
2900        [DataMemberAttribute()]
2901        public global::System.Byte[] ActualCode
2902        {
2903            get
2904            {
2905                return StructuralObject.GetValidValue(_ActualCode);
2906            }
2907            set
2908            {
2909                OnActualCodeChanging(value);
2910                ReportPropertyChanging(""ActualCode"");
2911                _ActualCode = StructuralObject.SetValidValue(value, true, ""ActualCode"");
2912                ReportPropertyChanged(""ActualCode"");
2913                OnActualCodeChanged();
2914            }
2915        }
2916        private global::System.Byte[] _ActualCode;
2917        partial void OnActualCodeChanging(global::System.Byte[] value);
2918        partial void OnActualCodeChanged();
2919    
2920        /// <summary>
2921        /// No Metadata Documentation available.
2922        /// </summary>
2923        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
2924        [DataMemberAttribute()]
2925        public global::System.DateTime ScanDate
2926        {
2927            get
2928            {
2929                return _ScanDate;
2930            }
2931            set
2932            {
2933                OnScanDateChanging(value);
2934                ReportPropertyChanging(""ScanDate"");
2935                _ScanDate = StructuralObject.SetValidValue(value, ""ScanDate"");
2936                ReportPropertyChanged(""ScanDate"");
2937                OnScanDateChanged();
2938            }
2939        }
2940        private global::System.DateTime _ScanDate;
2941        partial void OnScanDateChanging(global::System.DateTime value);
2942        partial void OnScanDateChanged();
2943    
2944        /// <summary>
2945        /// No Metadata Documentation available.
2946        /// </summary>
2947        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
2948        [DataMemberAttribute()]
2949        public global::System.String Details
2950        {
2951            get
2952            {
2953                return _Details;
2954            }
2955            set
2956            {
2957                OnDetailsChanging(value);
2958                ReportPropertyChanging(""Details"");
2959                _Details = StructuralObject.SetValidValue(value, false, ""Details"");
2960                ReportPropertyChanged(""Details"");
2961                OnDetailsChanged();
2962            }
2963        }
2964        private global::System.String _Details;
2965        partial void OnDetailsChanging(global::System.String value);
2966        partial void OnDetailsChanged();
2967
2968        #endregion
2969
2970        #region Navigation Properties
2971    
2972        /// <summary>
2973        /// No Metadata Documentation available.
2974        /// </summary>
2975        [XmlIgnoreAttribute()]
2976        [SoapIgnoreAttribute()]
2977        [DataMemberAttribute()]
2978        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Barcode_IncorrectScanExpected"", ""Barcode"")]
2979        public BarcodeMm ExpectedBarcode
2980        {
2981            get
2982            {
2983                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanExpected"", ""Barcode"").Value;
2984            }
2985            set
2986            {
2987                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanExpected"", ""Barcode"").Value = value;
2988            }
2989        }
2990        /// <summary>
2991        /// No Metadata Documentation available.
2992        /// </summary>
2993        [BrowsableAttribute(false)]
2994        [DataMemberAttribute()]
2995        public EntityReference<BarcodeMm> ExpectedBarcodeReference
2996        {
2997            get
2998            {
2999                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanExpected"", ""Barcode"");
3000            }
3001            set
3002            {
3003                if ((value != null))
3004                {
3005                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanExpected"", ""Barcode"", value);
3006                }
3007            }
3008        }
3009    
3010        /// <summary>
3011        /// No Metadata Documentation available.
3012        /// </summary>
3013        [XmlIgnoreAttribute()]
3014        [SoapIgnoreAttribute()]
3015        [DataMemberAttribute()]
3016        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Barcode_IncorrectScanActual"", ""Barcode"")]
3017        public BarcodeMm ActualBarcode
3018        {
3019            get
3020            {
3021                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanActual"", ""Barcode"").Value;
3022            }
3023            set
3024            {
3025                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanActual"", ""Barcode"").Value = value;
3026            }
3027        }
3028        /// <summary>
3029        /// No Metadata Documentation available.
3030        /// </summary>
3031        [BrowsableAttribute(false)]
3032        [DataMemberAttribute()]
3033        public EntityReference<BarcodeMm> ActualBarcodeReference
3034        {
3035            get
3036            {
3037                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanActual"", ""Barcode"");
3038            }
3039            set
3040            {
3041                if ((value != null))
3042                {
3043                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<BarcodeMm>(""MonsterNamespace.Barcode_IncorrectScanActual"", ""Barcode"", value);
3044                }
3045            }
3046        }
3047
3048        #endregion
3049
3050    }
3051    
3052    /// <summary>
3053    /// No Metadata Documentation available.
3054    /// </summary>
3055    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""LastLoginMm"")]
3056    [Serializable()]
3057    [DataContractAttribute(IsReference=true)]
3058    public partial class LastLoginMm : EntityObject
3059    {
3060        #region Factory Method
3061    
3062        /// <summary>
3063        /// Create a new LastLoginMm object.
3064        /// </summary>
3065        /// <param name=""username"">Initial value of the Username property.</param>
3066        /// <param name=""loggedIn"">Initial value of the LoggedIn property.</param>
3067        public static LastLoginMm CreateLastLoginMm(global::System.String username, global::System.DateTime loggedIn)
3068        {
3069            LastLoginMm lastLoginMm = new LastLoginMm();
3070            lastLoginMm.Username = username;
3071            lastLoginMm.LoggedIn = loggedIn;
3072            return lastLoginMm;
3073        }
3074
3075        #endregion
3076
3077        #region Simple Properties
3078    
3079        /// <summary>
3080        /// No Metadata Documentation available.
3081        /// </summary>
3082        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
3083        [DataMemberAttribute()]
3084        public global::System.String Username
3085        {
3086            get
3087            {
3088                return _Username;
3089            }
3090            set
3091            {
3092                if (_Username != value)
3093                {
3094                    OnUsernameChanging(value);
3095                    ReportPropertyChanging(""Username"");
3096                    _Username = StructuralObject.SetValidValue(value, false, ""Username"");
3097                    ReportPropertyChanged(""Username"");
3098                    OnUsernameChanged();
3099                }
3100            }
3101        }
3102        private global::System.String _Username;
3103        partial void OnUsernameChanging(global::System.String value);
3104        partial void OnUsernameChanged();
3105    
3106        /// <summary>
3107        /// No Metadata Documentation available.
3108        /// </summary>
3109        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
3110        [DataMemberAttribute()]
3111        public global::System.DateTime LoggedIn
3112        {
3113            get
3114            {
3115                return _LoggedIn;
3116            }
3117            set
3118            {
3119                OnLoggedInChanging(value);
3120                ReportPropertyChanging(""LoggedIn"");
3121                _LoggedIn = StructuralObject.SetValidValue(value, ""LoggedIn"");
3122                ReportPropertyChanged(""LoggedIn"");
3123                OnLoggedInChanged();
3124            }
3125        }
3126        private global::System.DateTime _LoggedIn;
3127        partial void OnLoggedInChanging(global::System.DateTime value);
3128        partial void OnLoggedInChanged();
3129    
3130        /// <summary>
3131        /// No Metadata Documentation available.
3132        /// </summary>
3133        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
3134        [DataMemberAttribute()]
3135        public Nullable<global::System.DateTime> LoggedOut
3136        {
3137            get
3138            {
3139                return _LoggedOut;
3140            }
3141            set
3142            {
3143                OnLoggedOutChanging(value);
3144                ReportPropertyChanging(""LoggedOut"");
3145                _LoggedOut = StructuralObject.SetValidValue(value, ""LoggedOut"");
3146                ReportPropertyChanged(""LoggedOut"");
3147                OnLoggedOutChanged();
3148            }
3149        }
3150        private Nullable<global::System.DateTime> _LoggedOut;
3151        partial void OnLoggedOutChanging(Nullable<global::System.DateTime> value);
3152        partial void OnLoggedOutChanged();
3153
3154        #endregion
3155
3156        #region Navigation Properties
3157    
3158        /// <summary>
3159        /// No Metadata Documentation available.
3160        /// </summary>
3161        [XmlIgnoreAttribute()]
3162        [SoapIgnoreAttribute()]
3163        [DataMemberAttribute()]
3164        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_LastLogin"", ""Login"")]
3165        public LoginMm Login
3166        {
3167            get
3168            {
3169                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_LastLogin"", ""Login"").Value;
3170            }
3171            set
3172            {
3173                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_LastLogin"", ""Login"").Value = value;
3174            }
3175        }
3176        /// <summary>
3177        /// No Metadata Documentation available.
3178        /// </summary>
3179        [BrowsableAttribute(false)]
3180        [DataMemberAttribute()]
3181        public EntityReference<LoginMm> LoginReference
3182        {
3183            get
3184            {
3185                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_LastLogin"", ""Login"");
3186            }
3187            set
3188            {
3189                if ((value != null))
3190                {
3191                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_LastLogin"", ""Login"", value);
3192                }
3193            }
3194        }
3195
3196        #endregion
3197
3198    }
3199    
3200    /// <summary>
3201    /// No Metadata Documentation available.
3202    /// </summary>
3203    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""LicenseMm"")]
3204    [Serializable()]
3205    [DataContractAttribute(IsReference=true)]
3206    public partial class LicenseMm : EntityObject
3207    {
3208        #region Factory Method
3209    
3210        /// <summary>
3211        /// Create a new LicenseMm object.
3212        /// </summary>
3213        /// <param name=""name"">Initial value of the Name property.</param>
3214        /// <param name=""licenseNumber"">Initial value of the LicenseNumber property.</param>
3215        /// <param name=""restrictions"">Initial value of the Restrictions property.</param>
3216        /// <param name=""expirationDate"">Initial value of the ExpirationDate property.</param>
3217        public static LicenseMm CreateLicenseMm(global::System.String name, global::System.String licenseNumber, global::System.String restrictions, global::System.DateTime expirationDate)
3218        {
3219            LicenseMm licenseMm = new LicenseMm();
3220            licenseMm.Name = name;
3221            licenseMm.LicenseNumber = licenseNumber;
3222            licenseMm.Restrictions = restrictions;
3223            licenseMm.ExpirationDate = expirationDate;
3224            return licenseMm;
3225        }
3226
3227        #endregion
3228
3229        #region Simple Properties
3230    
3231        /// <summary>
3232        /// No Metadata Documentation available.
3233        /// </summary>
3234        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
3235        [DataMemberAttribute()]
3236        public global::System.String Name
3237        {
3238            get
3239            {
3240                return _Name;
3241            }
3242            set
3243            {
3244                if (_Name != value)
3245                {
3246                    OnNameChanging(value);
3247                    ReportPropertyChanging(""Name"");
3248                    _Name = StructuralObject.SetValidValue(value, false, ""Name"");
3249                    ReportPropertyChanged(""Name"");
3250                    OnNameChanged();
3251                }
3252            }
3253        }
3254        private global::System.String _Name;
3255        partial void OnNameChanging(global::System.String value);
3256        partial void OnNameChanged();
3257    
3258        /// <summary>
3259        /// No Metadata Documentation available.
3260        /// </summary>
3261        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
3262        [DataMemberAttribute()]
3263        public global::System.String LicenseNumber
3264        {
3265            get
3266            {
3267                return _LicenseNumber;
3268            }
3269            set
3270            {
3271                OnLicenseNumberChanging(value);
3272                ReportPropertyChanging(""LicenseNumber"");
3273                _LicenseNumber = StructuralObject.SetValidValue(value, false, ""LicenseNumber"");
3274                ReportPropertyChanged(""LicenseNumber"");
3275                OnLicenseNumberChanged();
3276            }
3277        }
3278        private global::System.String _LicenseNumber;
3279        partial void OnLicenseNumberChanging(global::System.String value);
3280        partial void OnLicenseNumberChanged();
3281    
3282        /// <summary>
3283        /// No Metadata Documentation available.
3284        /// </summary>
3285        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
3286        [DataMemberAttribute()]
3287        public global::System.String LicenseClass
3288        {
3289            get
3290            {
3291                return _LicenseClass;
3292            }
3293            set
3294            {
3295                OnLicenseClassChanging(value);
3296                ReportPropertyChanging(""LicenseClass"");
3297                _LicenseClass = StructuralObject.SetValidValue(value, false, ""LicenseClass"");
3298                ReportPropertyChanged(""LicenseClass"");
3299                OnLicenseClassChanged();
3300            }
3301        }
3302        private global::System.String _LicenseClass = ""C"";
3303        partial void OnLicenseClassChanging(global::System.String value);
3304        partial void OnLicenseClassChanged();
3305    
3306        /// <summary>
3307        /// No Metadata Documentation available.
3308        /// </summary>
3309        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
3310        [DataMemberAttribute()]
3311        public global::System.String Restrictions
3312        {
3313            get
3314            {
3315                return _Restrictions;
3316            }
3317            set
3318            {
3319                OnRestrictionsChanging(value);
3320                ReportPropertyChanging(""Restrictions"");
3321                _Restrictions = StructuralObject.SetValidValue(value, false, ""Restrictions"");
3322                ReportPropertyChanged(""Restrictions"");
3323                OnRestrictionsChanged();
3324            }
3325        }
3326        private global::System.String _Restrictions;
3327        partial void OnRestrictionsChanging(global::System.String value);
3328        partial void OnRestrictionsChanged();
3329    
3330        /// <summary>
3331        /// No Metadata Documentation available.
3332        /// </summary>
3333        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
3334        [DataMemberAttribute()]
3335        public global::System.DateTime ExpirationDate
3336        {
3337            get
3338            {
3339                return _ExpirationDate;
3340            }
3341            set
3342            {
3343                OnExpirationDateChanging(value);
3344                ReportPropertyChanging(""ExpirationDate"");
3345                _ExpirationDate = StructuralObject.SetValidValue(value, ""ExpirationDate"");
3346                ReportPropertyChanged(""ExpirationDate"");
3347                OnExpirationDateChanged();
3348            }
3349        }
3350        private global::System.DateTime _ExpirationDate;
3351        partial void OnExpirationDateChanging(global::System.DateTime value);
3352        partial void OnExpirationDateChanged();
3353    
3354        /// <summary>
3355        /// No Metadata Documentation available.
3356        /// </summary>
3357        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
3358        [DataMemberAttribute()]
3359        public Nullable<LicenseStateMm> State
3360        {
3361            get
3362            {
3363                return _State;
3364            }
3365            set
3366            {
3367                OnStateChanging(value);
3368                ReportPropertyChanging(""State"");
3369                _State = (Nullable<LicenseStateMm>)StructuralObject.SetValidValue((Nullable<int>)value, ""State"");
3370                ReportPropertyChanged(""State"");
3371                OnStateChanged();
3372            }
3373        }
3374        private Nullable<LicenseStateMm> _State;
3375        partial void OnStateChanging(Nullable<LicenseStateMm> value);
3376        partial void OnStateChanged();
3377
3378        #endregion
3379
3380        #region Navigation Properties
3381    
3382        /// <summary>
3383        /// No Metadata Documentation available.
3384        /// </summary>
3385        [XmlIgnoreAttribute()]
3386        [SoapIgnoreAttribute()]
3387        [DataMemberAttribute()]
3388        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Driver_License"", ""Driver"")]
3389        public DriverMm Driver
3390        {
3391            get
3392            {
3393                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<DriverMm>(""MonsterNamespace.Driver_License"", ""Driver"").Value;
3394            }
3395            set
3396            {
3397                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<DriverMm>(""MonsterNamespace.Driver_License"", ""Driver"").Value = value;
3398            }
3399        }
3400        /// <summary>
3401        /// No Metadata Documentation available.
3402        /// </summary>
3403        [BrowsableAttribute(false)]
3404        [DataMemberAttribute()]
3405        public EntityReference<DriverMm> DriverReference
3406        {
3407            get
3408            {
3409                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<DriverMm>(""MonsterNamespace.Driver_License"", ""Driver"");
3410            }
3411            set
3412            {
3413                if ((value != null))
3414                {
3415                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<DriverMm>(""MonsterNamespace.Driver_License"", ""Driver"", value);
3416                }
3417            }
3418        }
3419
3420        #endregion
3421
3422    }
3423    
3424    /// <summary>
3425    /// No Metadata Documentation available.
3426    /// </summary>
3427    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""LoginMm"")]
3428    [Serializable()]
3429    [DataContractAttribute(IsReference=true)]
3430    public partial class LoginMm : EntityObject
3431    {
3432        #region Factory Method
3433    
3434        /// <summary>
3435        /// Create a new LoginMm object.
3436        /// </summary>
3437        /// <param name=""username"">Initial value of the Username property.</param>
3438        /// <param name=""customerId"">Initial value of the CustomerId property.</param>
3439        public static LoginMm CreateLoginMm(global::System.String username, global::System.Int32 customerId)
3440        {
3441            LoginMm loginMm = new LoginMm();
3442            loginMm.Username = username;
3443            loginMm.CustomerId = customerId;
3444            return loginMm;
3445        }
3446
3447        #endregion
3448
3449        #region Simple Properties
3450    
3451        /// <summary>
3452        /// No Metadata Documentation available.
3453        /// </summary>
3454        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
3455        [DataMemberAttribute()]
3456        public global::System.String Username
3457        {
3458            get
3459            {
3460                return _Username;
3461            }
3462            set
3463            {
3464                if (_Username != value)
3465                {
3466                    OnUsernameChanging(value);
3467                    ReportPropertyChanging(""Username"");
3468                    _Username = StructuralObject.SetValidValue(value, false, ""Username"");
3469                    ReportPropertyChanged(""Username"");
3470                    OnUsernameChanged();
3471                }
3472            }
3473        }
3474        private global::System.String _Username;
3475        partial void OnUsernameChanging(global::System.String value);
3476        partial void OnUsernameChanged();
3477    
3478        /// <summary>
3479        /// No Metadata Documentation available.
3480        /// </summary>
3481        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
3482        [DataMemberAttribute()]
3483        public global::System.Int32 CustomerId
3484        {
3485            get
3486            {
3487                return _CustomerId;
3488            }
3489            set
3490            {
3491                OnCustomerIdChanging(value);
3492                ReportPropertyChanging(""CustomerId"");
3493                _CustomerId = StructuralObject.SetValidValue(value, ""CustomerId"");
3494                ReportPropertyChanged(""CustomerId"");
3495                OnCustomerIdChanged();
3496            }
3497        }
3498        private global::System.Int32 _CustomerId;
3499        partial void OnCustomerIdChanging(global::System.Int32 value);
3500        partial void OnCustomerIdChanged();
3501
3502        #endregion
3503
3504        #region Navigation Properties
3505    
3506        /// <summary>
3507        /// No Metadata Documentation available.
3508        /// </summary>
3509        [XmlIgnoreAttribute()]
3510        [SoapIgnoreAttribute()]
3511        [DataMemberAttribute()]
3512        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Customer_Logins"", ""Customer"")]
3513        public CustomerMm Customer
3514        {
3515            get
3516            {
3517                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Logins"", ""Customer"").Value;
3518            }
3519            set
3520            {
3521                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Logins"", ""Customer"").Value = value;
3522            }
3523        }
3524        /// <summary>
3525        /// No Metadata Documentation available.
3526        /// </summary>
3527        [BrowsableAttribute(false)]
3528        [DataMemberAttribute()]
3529        public EntityReference<CustomerMm> CustomerReference
3530        {
3531            get
3532            {
3533                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Logins"", ""Customer"");
3534            }
3535            set
3536            {
3537                if ((value != null))
3538                {
3539                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Logins"", ""Customer"", value);
3540                }
3541            }
3542        }
3543    
3544        /// <summary>
3545        /// No Metadata Documentation available.
3546        /// </summary>
3547        [XmlIgnoreAttribute()]
3548        [SoapIgnoreAttribute()]
3549        [DataMemberAttribute()]
3550        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_LastLogin"", ""LastLogin"")]
3551        public LastLoginMm LastLogin
3552        {
3553            get
3554            {
3555                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LastLoginMm>(""MonsterNamespace.Login_LastLogin"", ""LastLogin"").Value;
3556            }
3557            set
3558            {
3559                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LastLoginMm>(""MonsterNamespace.Login_LastLogin"", ""LastLogin"").Value = value;
3560            }
3561        }
3562        /// <summary>
3563        /// No Metadata Documentation available.
3564        /// </summary>
3565        [BrowsableAttribute(false)]
3566        [DataMemberAttribute()]
3567        public EntityReference<LastLoginMm> LastLoginReference
3568        {
3569            get
3570            {
3571                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LastLoginMm>(""MonsterNamespace.Login_LastLogin"", ""LastLogin"");
3572            }
3573            set
3574            {
3575                if ((value != null))
3576                {
3577                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LastLoginMm>(""MonsterNamespace.Login_LastLogin"", ""LastLogin"", value);
3578                }
3579            }
3580        }
3581    
3582        /// <summary>
3583        /// No Metadata Documentation available.
3584        /// </summary>
3585        [XmlIgnoreAttribute()]
3586        [SoapIgnoreAttribute()]
3587        [DataMemberAttribute()]
3588        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_SentMessages"", ""Message"")]
3589        public EntityCollection<MessageMm> SentMessages
3590        {
3591            get
3592            {
3593                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<MessageMm>(""MonsterNamespace.Login_SentMessages"", ""Message"");
3594            }
3595            set
3596            {
3597                if ((value != null))
3598                {
3599                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<MessageMm>(""MonsterNamespace.Login_SentMessages"", ""Message"", value);
3600                }
3601            }
3602        }
3603    
3604        /// <summary>
3605        /// No Metadata Documentation available.
3606        /// </summary>
3607        [XmlIgnoreAttribute()]
3608        [SoapIgnoreAttribute()]
3609        [DataMemberAttribute()]
3610        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_ReceivedMessages"", ""Message"")]
3611        public EntityCollection<MessageMm> ReceivedMessages
3612        {
3613            get
3614            {
3615                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<MessageMm>(""MonsterNamespace.Login_ReceivedMessages"", ""Message"");
3616            }
3617            set
3618            {
3619                if ((value != null))
3620                {
3621                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<MessageMm>(""MonsterNamespace.Login_ReceivedMessages"", ""Message"", value);
3622                }
3623            }
3624        }
3625    
3626        /// <summary>
3627        /// No Metadata Documentation available.
3628        /// </summary>
3629        [XmlIgnoreAttribute()]
3630        [SoapIgnoreAttribute()]
3631        [DataMemberAttribute()]
3632        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_Orders"", ""Orders"")]
3633        public EntityCollection<OrderMm> Orders
3634        {
3635            get
3636            {
3637                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<OrderMm>(""MonsterNamespace.Login_Orders"", ""Orders"");
3638            }
3639            set
3640            {
3641                if ((value != null))
3642                {
3643                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<OrderMm>(""MonsterNamespace.Login_Orders"", ""Orders"", value);
3644                }
3645            }
3646        }
3647
3648        #endregion
3649
3650    }
3651    
3652    /// <summary>
3653    /// No Metadata Documentation available.
3654    /// </summary>
3655    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""MessageMm"")]
3656    [Serializable()]
3657    [DataContractAttribute(IsReference=true)]
3658    public partial class MessageMm : EntityObject
3659    {
3660        #region Factory Method
3661    
3662        /// <summary>
3663        /// Create a new MessageMm object.
3664        /// </summary>
3665        /// <param name=""messageId"">Initial value of the MessageId property.</param>
3666        /// <param name=""fromUsername"">Initial value of the FromUsername property.</param>
3667        /// <param name=""toUsername"">Initial value of the ToUsername property.</param>
3668        /// <param name=""sent"">Initial value of the Sent property.</param>
3669        /// <param name=""subject"">Initial value of the Subject property.</param>
3670        /// <param name=""isRead"">Initial value of the IsRead property.</param>
3671        public static MessageMm CreateMessageMm(global::System.Int32 messageId, global::System.String fromUsername, global::System.String toUsername, global::System.DateTime sent, global::System.String subject, global::System.Boolean isRead)
3672        {
3673            MessageMm messageMm = new MessageMm();
3674            messageMm.MessageId = messageId;
3675            messageMm.FromUsername = fromUsername;
3676            messageMm.ToUsername = toUsername;
3677            messageMm.Sent = sent;
3678            messageMm.Subject = subject;
3679            messageMm.IsRead = isRead;
3680            return messageMm;
3681        }
3682
3683        #endregion
3684
3685        #region Simple Properties
3686    
3687        /// <summary>
3688        /// No Metadata Documentation available.
3689        /// </summary>
3690        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
3691        [DataMemberAttribute()]
3692        public global::System.Int32 MessageId
3693        {
3694            get
3695            {
3696                return _MessageId;
3697            }
3698            set
3699            {
3700                if (_MessageId != value)
3701                {
3702                    OnMessageIdChanging(value);
3703                    ReportPropertyChanging(""MessageId"");
3704                    _MessageId = StructuralObject.SetValidValue(value, ""MessageId"");
3705                    ReportPropertyChanged(""MessageId"");
3706                    OnMessageIdChanged();
3707                }
3708            }
3709        }
3710        private global::System.Int32 _MessageId;
3711        partial void OnMessageIdChanging(global::System.Int32 value);
3712        partial void OnMessageIdChanged();
3713    
3714        /// <summary>
3715        /// No Metadata Documentation available.
3716        /// </summary>
3717        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
3718        [DataMemberAttribute()]
3719        public global::System.String FromUsername
3720        {
3721            get
3722            {
3723                return _FromUsername;
3724            }
3725            set
3726            {
3727                if (_FromUsername != value)
3728                {
3729                    OnFromUsernameChanging(value);
3730                    ReportPropertyChanging(""FromUsername"");
3731                    _FromUsername = StructuralObject.SetValidValue(value, false, ""FromUsername"");
3732                    ReportPropertyChanged(""FromUsername"");
3733                    OnFromUsernameChanged();
3734                }
3735            }
3736        }
3737        private global::System.String _FromUsername;
3738        partial void OnFromUsernameChanging(global::System.String value);
3739        partial void OnFromUsernameChanged();
3740    
3741        /// <summary>
3742        /// No Metadata Documentation available.
3743        /// </summary>
3744        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
3745        [DataMemberAttribute()]
3746        public global::System.String ToUsername
3747        {
3748            get
3749            {
3750                return _ToUsername;
3751            }
3752            set
3753            {
3754                OnToUsernameChanging(value);
3755                ReportPropertyChanging(""ToUsername"");
3756                _ToUsername = StructuralObject.SetValidValue(value, false, ""ToUsername"");
3757                ReportPropertyChanged(""ToUsername"");
3758                OnToUsernameChanged();
3759            }
3760        }
3761        private global::System.String _ToUsername;
3762        partial void OnToUsernameChanging(global::System.String value);
3763        partial void OnToUsernameChanged();
3764    
3765        /// <summary>
3766        /// No Metadata Documentation available.
3767        /// </summary>
3768        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
3769        [DataMemberAttribute()]
3770        public global::System.DateTime Sent
3771        {
3772            get
3773            {
3774                return _Sent;
3775            }
3776            set
3777            {
3778                OnSentChanging(value);
3779                ReportPropertyChanging(""Sent"");
3780                _Sent = StructuralObject.SetValidValue(value, ""Sent"");
3781                ReportPropertyChanged(""Sent"");
3782                OnSentChanged();
3783            }
3784        }
3785        private global::System.DateTime _Sent;
3786        partial void OnSentChanging(global::System.DateTime value);
3787        partial void OnSentChanged();
3788    
3789        /// <summary>
3790        /// No Metadata Documentation available.
3791        /// </summary>
3792        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
3793        [DataMemberAttribute()]
3794        public global::System.String Subject
3795        {
3796            get
3797            {
3798                return _Subject;
3799            }
3800            set
3801            {
3802                OnSubjectChanging(value);
3803                ReportPropertyChanging(""Subject"");
3804                _Subject = StructuralObject.SetValidValue(value, false, ""Subject"");
3805                ReportPropertyChanged(""Subject"");
3806                OnSubjectChanged();
3807            }
3808        }
3809        private global::System.String _Subject;
3810        partial void OnSubjectChanging(global::System.String value);
3811        partial void OnSubjectChanged();
3812    
3813        /// <summary>
3814        /// No Metadata Documentation available.
3815        /// </summary>
3816        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
3817        [DataMemberAttribute()]
3818        public global::System.String Body
3819        {
3820            get
3821            {
3822                return _Body;
3823            }
3824            set
3825            {
3826                OnBodyChanging(value);
3827                ReportPropertyChanging(""Body"");
3828                _Body = StructuralObject.SetValidValue(value, true, ""Body"");
3829                ReportPropertyChanged(""Body"");
3830                OnBodyChanged();
3831            }
3832        }
3833        private global::System.String _Body;
3834        partial void OnBodyChanging(global::System.String value);
3835        partial void OnBodyChanged();
3836    
3837        /// <summary>
3838        /// No Metadata Documentation available.
3839        /// </summary>
3840        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
3841        [DataMemberAttribute()]
3842        public global::System.Boolean IsRead
3843        {
3844            get
3845            {
3846                return _IsRead;
3847            }
3848            set
3849            {
3850                OnIsReadChanging(value);
3851                ReportPropertyChanging(""IsRead"");
3852                _IsRead = StructuralObject.SetValidValue(value, ""IsRead"");
3853                ReportPropertyChanged(""IsRead"");
3854                OnIsReadChanged();
3855            }
3856        }
3857        private global::System.Boolean _IsRead;
3858        partial void OnIsReadChanging(global::System.Boolean value);
3859        partial void OnIsReadChanged();
3860
3861        #endregion
3862
3863        #region Navigation Properties
3864    
3865        /// <summary>
3866        /// No Metadata Documentation available.
3867        /// </summary>
3868        [XmlIgnoreAttribute()]
3869        [SoapIgnoreAttribute()]
3870        [DataMemberAttribute()]
3871        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_SentMessages"", ""Sender"")]
3872        public LoginMm Sender
3873        {
3874            get
3875            {
3876                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_SentMessages"", ""Sender"").Value;
3877            }
3878            set
3879            {
3880                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_SentMessages"", ""Sender"").Value = value;
3881            }
3882        }
3883        /// <summary>
3884        /// No Metadata Documentation available.
3885        /// </summary>
3886        [BrowsableAttribute(false)]
3887        [DataMemberAttribute()]
3888        public EntityReference<LoginMm> SenderReference
3889        {
3890            get
3891            {
3892                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_SentMessages"", ""Sender"");
3893            }
3894            set
3895            {
3896                if ((value != null))
3897                {
3898                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_SentMessages"", ""Sender"", value);
3899                }
3900            }
3901        }
3902    
3903        /// <summary>
3904        /// No Metadata Documentation available.
3905        /// </summary>
3906        [XmlIgnoreAttribute()]
3907        [SoapIgnoreAttribute()]
3908        [DataMemberAttribute()]
3909        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_ReceivedMessages"", ""Recipient"")]
3910        public LoginMm Recipient
3911        {
3912            get
3913            {
3914                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_ReceivedMessages"", ""Recipient"").Value;
3915            }
3916            set
3917            {
3918                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_ReceivedMessages"", ""Recipient"").Value = value;
3919            }
3920        }
3921        /// <summary>
3922        /// No Metadata Documentation available.
3923        /// </summary>
3924        [BrowsableAttribute(false)]
3925        [DataMemberAttribute()]
3926        public EntityReference<LoginMm> RecipientReference
3927        {
3928            get
3929            {
3930                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_ReceivedMessages"", ""Recipient"");
3931            }
3932            set
3933            {
3934                if ((value != null))
3935                {
3936                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_ReceivedMessages"", ""Recipient"", value);
3937                }
3938            }
3939        }
3940
3941        #endregion
3942
3943    }
3944    
3945    /// <summary>
3946    /// No Metadata Documentation available.
3947    /// </summary>
3948    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""OrderLineMm"")]
3949    [Serializable()]
3950    [DataContractAttribute(IsReference=true)]
3951    [KnownTypeAttribute(typeof(BackOrderLineMm))]
3952    public partial class OrderLineMm : EntityObject
3953    {
3954        #region Factory Method
3955    
3956        /// <summary>
3957        /// Create a new OrderLineMm object.
3958        /// </summary>
3959        /// <param name=""orderId"">Initial value of the OrderId property.</param>
3960        /// <param name=""productId"">Initial value of the ProductId property.</param>
3961        /// <param name=""concurrencyToken"">Initial value of the ConcurrencyToken property.</param>
3962        public static OrderLineMm CreateOrderLineMm(global::System.Int32 orderId, global::System.Int32 productId, global::System.String concurrencyToken)
3963        {
3964            OrderLineMm orderLineMm = new OrderLineMm();
3965            orderLineMm.OrderId = orderId;
3966            orderLineMm.ProductId = productId;
3967            orderLineMm.ConcurrencyToken = concurrencyToken;
3968            return orderLineMm;
3969        }
3970
3971        #endregion
3972
3973        #region Simple Properties
3974    
3975        /// <summary>
3976        /// No Metadata Documentation available.
3977        /// </summary>
3978        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
3979        [DataMemberAttribute()]
3980        public global::System.Int32 OrderId
3981        {
3982            get
3983            {
3984                return _OrderId;
3985            }
3986            set
3987            {
3988                if (_OrderId != value)
3989                {
3990                    OnOrderIdChanging(value);
3991                    ReportPropertyChanging(""OrderId"");
3992                    _OrderId = StructuralObject.SetValidValue(value, ""OrderId"");
3993                    ReportPropertyChanged(""OrderId"");
3994                    OnOrderIdChanged();
3995                }
3996            }
3997        }
3998        private global::System.Int32 _OrderId;
3999        partial void OnOrderIdChanging(global::System.Int32 value);
4000        partial void OnOrderIdChanged();
4001    
4002        /// <summary>
4003        /// No Metadata Documentation available.
4004        /// </summary>
4005        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
4006        [DataMemberAttribute()]
4007        public global::System.Int32 ProductId
4008        {
4009            get
4010            {
4011                return _ProductId;
4012            }
4013            set
4014            {
4015                if (_ProductId != value)
4016                {
4017                    OnProductIdChanging(value);
4018                    ReportPropertyChanging(""ProductId"");
4019                    _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
4020                    ReportPropertyChanged(""ProductId"");
4021                    OnProductIdChanged();
4022                }
4023            }
4024        }
4025        private global::System.Int32 _ProductId;
4026        partial void OnProductIdChanging(global::System.Int32 value);
4027        partial void OnProductIdChanged();
4028    
4029        /// <summary>
4030        /// No Metadata Documentation available.
4031        /// </summary>
4032        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
4033        [DataMemberAttribute()]
4034        public global::System.Int32 Quantity
4035        {
4036            get
4037            {
4038                return _Quantity;
4039            }
4040            set
4041            {
4042                OnQuantityChanging(value);
4043                ReportPropertyChanging(""Quantity"");
4044                _Quantity = StructuralObject.SetValidValue(value, ""Quantity"");
4045                ReportPropertyChanged(""Quantity"");
4046                OnQuantityChanged();
4047            }
4048        }
4049        private global::System.Int32 _Quantity = 1;
4050        partial void OnQuantityChanging(global::System.Int32 value);
4051        partial void OnQuantityChanged();
4052    
4053        /// <summary>
4054        /// No Metadata Documentation available.
4055        /// </summary>
4056        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
4057        [DataMemberAttribute()]
4058        public global::System.String ConcurrencyToken
4059        {
4060            get
4061            {
4062                return _ConcurrencyToken;
4063            }
4064            set
4065            {
4066                OnConcurrencyTokenChanging(value);
4067                ReportPropertyChanging(""ConcurrencyToken"");
4068                _ConcurrencyToken = StructuralObject.SetValidValue(value, false, ""ConcurrencyToken"");
4069                ReportPropertyChanged(""ConcurrencyToken"");
4070                OnConcurrencyTokenChanged();
4071            }
4072        }
4073        private global::System.String _ConcurrencyToken;
4074        partial void OnConcurrencyTokenChanging(global::System.String value);
4075        partial void OnConcurrencyTokenChanged();
4076
4077        #endregion
4078
4079        #region Navigation Properties
4080    
4081        /// <summary>
4082        /// No Metadata Documentation available.
4083        /// </summary>
4084        [XmlIgnoreAttribute()]
4085        [SoapIgnoreAttribute()]
4086        [DataMemberAttribute()]
4087        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Order_OrderLines"", ""Order"")]
4088        public OrderMm Order
4089        {
4090            get
4091            {
4092                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderLines"", ""Order"").Value;
4093            }
4094            set
4095            {
4096                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderLines"", ""Order"").Value = value;
4097            }
4098        }
4099        /// <summary>
4100        /// No Metadata Documentation available.
4101        /// </summary>
4102        [BrowsableAttribute(false)]
4103        [DataMemberAttribute()]
4104        public EntityReference<OrderMm> OrderReference
4105        {
4106            get
4107            {
4108                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderLines"", ""Order"");
4109            }
4110            set
4111            {
4112                if ((value != null))
4113                {
4114                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderLines"", ""Order"", value);
4115                }
4116            }
4117        }
4118    
4119        /// <summary>
4120        /// No Metadata Documentation available.
4121        /// </summary>
4122        [XmlIgnoreAttribute()]
4123        [SoapIgnoreAttribute()]
4124        [DataMemberAttribute()]
4125        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_OrderLines"", ""Product"")]
4126        public ProductMm Product
4127        {
4128            get
4129            {
4130                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_OrderLines"", ""Product"").Value;
4131            }
4132            set
4133            {
4134                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_OrderLines"", ""Product"").Value = value;
4135            }
4136        }
4137        /// <summary>
4138        /// No Metadata Documentation available.
4139        /// </summary>
4140        [BrowsableAttribute(false)]
4141        [DataMemberAttribute()]
4142        public EntityReference<ProductMm> ProductReference
4143        {
4144            get
4145            {
4146                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_OrderLines"", ""Product"");
4147            }
4148            set
4149            {
4150                if ((value != null))
4151                {
4152                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductMm>(""MonsterNamespace.Product_OrderLines"", ""Product"", value);
4153                }
4154            }
4155        }
4156
4157        #endregion
4158
4159    }
4160    
4161    /// <summary>
4162    /// No Metadata Documentation available.
4163    /// </summary>
4164    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""OrderMm"")]
4165    [Serializable()]
4166    [DataContractAttribute(IsReference=true)]
4167    public partial class OrderMm : EntityObject
4168    {
4169        #region Factory Method
4170    
4171        /// <summary>
4172        /// Create a new OrderMm object.
4173        /// </summary>
4174        /// <param name=""orderId"">Initial value of the OrderId property.</param>
4175        /// <param name=""concurrency"">Initial value of the Concurrency property.</param>
4176        public static OrderMm CreateOrderMm(global::System.Int32 orderId, ConcurrencyInfoMm concurrency)
4177        {
4178            OrderMm orderMm = new OrderMm();
4179            orderMm.OrderId = orderId;
4180            orderMm.Concurrency = StructuralObject.VerifyComplexObjectIsNotNull(concurrency, ""Concurrency"");
4181            return orderMm;
4182        }
4183
4184        #endregion
4185
4186        #region Simple Properties
4187    
4188        /// <summary>
4189        /// No Metadata Documentation available.
4190        /// </summary>
4191        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
4192        [DataMemberAttribute()]
4193        public global::System.Int32 OrderId
4194        {
4195            get
4196            {
4197                return _OrderId;
4198            }
4199            set
4200            {
4201                if (_OrderId != value)
4202                {
4203                    OnOrderIdChanging(value);
4204                    ReportPropertyChanging(""OrderId"");
4205                    _OrderId = StructuralObject.SetValidValue(value, ""OrderId"");
4206                    ReportPropertyChanged(""OrderId"");
4207                    OnOrderIdChanged();
4208                }
4209            }
4210        }
4211        private global::System.Int32 _OrderId;
4212        partial void OnOrderIdChanging(global::System.Int32 value);
4213        partial void OnOrderIdChanged();
4214    
4215        /// <summary>
4216        /// No Metadata Documentation available.
4217        /// </summary>
4218        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
4219        [DataMemberAttribute()]
4220        public Nullable<global::System.Int32> CustomerId
4221        {
4222            get
4223            {
4224                return _CustomerId;
4225            }
4226            set
4227            {
4228                OnCustomerIdChanging(value);
4229                ReportPropertyChanging(""CustomerId"");
4230                _CustomerId = StructuralObject.SetValidValue(value, ""CustomerId"");
4231                ReportPropertyChanged(""CustomerId"");
4232                OnCustomerIdChanged();
4233            }
4234        }
4235        private Nullable<global::System.Int32> _CustomerId;
4236        partial void OnCustomerIdChanging(Nullable<global::System.Int32> value);
4237        partial void OnCustomerIdChanged();
4238
4239        #endregion
4240
4241        #region Complex Properties
4242    
4243        /// <summary>
4244        /// No Metadata Documentation available.
4245        /// </summary>
4246        [EdmComplexPropertyAttribute()]
4247        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
4248        [XmlElement(IsNullable=true)]
4249        [SoapElement(IsNullable=true)]
4250        [DataMemberAttribute()]
4251        public ConcurrencyInfoMm Concurrency
4252        {
4253            get
4254            {
4255                _Concurrency = GetValidValue(_Concurrency, ""Concurrency"", false, _ConcurrencyInitialized);
4256                _ConcurrencyInitialized = true;
4257                return _Concurrency;
4258            }
4259            set
4260            {
4261                OnConcurrencyChanging(value);
4262                ReportPropertyChanging(""Concurrency"");
4263                _Concurrency = SetValidValue(_Concurrency, value, ""Concurrency"");
4264                _ConcurrencyInitialized = true;
4265                ReportPropertyChanged(""Concurrency"");
4266                OnConcurrencyChanged();
4267            }
4268        }
4269        private ConcurrencyInfoMm _Concurrency;
4270        private bool _ConcurrencyInitialized;
4271        partial void OnConcurrencyChanging(ConcurrencyInfoMm value);
4272        partial void OnConcurrencyChanged();
4273
4274        #endregion
4275
4276        #region Navigation Properties
4277    
4278        /// <summary>
4279        /// No Metadata Documentation available.
4280        /// </summary>
4281        [XmlIgnoreAttribute()]
4282        [SoapIgnoreAttribute()]
4283        [DataMemberAttribute()]
4284        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Customer_Orders"", ""Customer"")]
4285        public CustomerMm Customer
4286        {
4287            get
4288            {
4289                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Orders"", ""Customer"").Value;
4290            }
4291            set
4292            {
4293                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Orders"", ""Customer"").Value = value;
4294            }
4295        }
4296        /// <summary>
4297        /// No Metadata Documentation available.
4298        /// </summary>
4299        [BrowsableAttribute(false)]
4300        [DataMemberAttribute()]
4301        public EntityReference<CustomerMm> CustomerReference
4302        {
4303            get
4304            {
4305                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Orders"", ""Customer"");
4306            }
4307            set
4308            {
4309                if ((value != null))
4310                {
4311                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<CustomerMm>(""MonsterNamespace.Customer_Orders"", ""Customer"", value);
4312                }
4313            }
4314        }
4315    
4316        /// <summary>
4317        /// No Metadata Documentation available.
4318        /// </summary>
4319        [XmlIgnoreAttribute()]
4320        [SoapIgnoreAttribute()]
4321        [DataMemberAttribute()]
4322        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Order_OrderLines"", ""OrderLines"")]
4323        public EntityCollection<OrderLineMm> OrderLines
4324        {
4325            get
4326            {
4327                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<OrderLineMm>(""MonsterNamespace.Order_OrderLines"", ""OrderLines"");
4328            }
4329            set
4330            {
4331                if ((value != null))
4332                {
4333                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<OrderLineMm>(""MonsterNamespace.Order_OrderLines"", ""OrderLines"", value);
4334                }
4335            }
4336        }
4337    
4338        /// <summary>
4339        /// No Metadata Documentation available.
4340        /// </summary>
4341        [XmlIgnoreAttribute()]
4342        [SoapIgnoreAttribute()]
4343        [DataMemberAttribute()]
4344        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Order_OrderNotes"", ""Notes"")]
4345        public EntityCollection<OrderNoteMm> Notes
4346        {
4347            get
4348            {
4349                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<OrderNoteMm>(""MonsterNamespace.Order_OrderNotes"", ""Notes"");
4350            }
4351            set
4352            {
4353                if ((value != null))
4354                {
4355                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<OrderNoteMm>(""MonsterNamespace.Order_OrderNotes"", ""Notes"", value);
4356                }
4357            }
4358        }
4359    
4360        /// <summary>
4361        /// No Metadata Documentation available.
4362        /// </summary>
4363        [XmlIgnoreAttribute()]
4364        [SoapIgnoreAttribute()]
4365        [DataMemberAttribute()]
4366        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_Orders"", ""Login"")]
4367        public LoginMm Login
4368        {
4369            get
4370            {
4371                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_Orders"", ""Login"").Value;
4372            }
4373            set
4374            {
4375                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_Orders"", ""Login"").Value = value;
4376            }
4377        }
4378        /// <summary>
4379        /// No Metadata Documentation available.
4380        /// </summary>
4381        [BrowsableAttribute(false)]
4382        [DataMemberAttribute()]
4383        public EntityReference<LoginMm> LoginReference
4384        {
4385            get
4386            {
4387                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_Orders"", ""Login"");
4388            }
4389            set
4390            {
4391                if ((value != null))
4392                {
4393                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_Orders"", ""Login"", value);
4394                }
4395            }
4396        }
4397
4398        #endregion
4399
4400    }
4401    
4402    /// <summary>
4403    /// No Metadata Documentation available.
4404    /// </summary>
4405    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""OrderNoteMm"")]
4406    [Serializable()]
4407    [DataContractAttribute(IsReference=true)]
4408    public partial class OrderNoteMm : EntityObject
4409    {
4410        #region Factory Method
4411    
4412        /// <summary>
4413        /// Create a new OrderNoteMm object.
4414        /// </summary>
4415        /// <param name=""noteId"">Initial value of the NoteId property.</param>
4416        /// <param name=""note"">Initial value of the Note property.</param>
4417        public static OrderNoteMm CreateOrderNoteMm(global::System.Int32 noteId, global::System.String note)
4418        {
4419            OrderNoteMm orderNoteMm = new OrderNoteMm();
4420            orderNoteMm.NoteId = noteId;
4421            orderNoteMm.Note = note;
4422            return orderNoteMm;
4423        }
4424
4425        #endregion
4426
4427        #region Simple Properties
4428    
4429        /// <summary>
4430        /// No Metadata Documentation available.
4431        /// </summary>
4432        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
4433        [DataMemberAttribute()]
4434        public global::System.Int32 NoteId
4435        {
4436            get
4437            {
4438                return _NoteId;
4439            }
4440            set
4441            {
4442                if (_NoteId != value)
4443                {
4444                    OnNoteIdChanging(value);
4445                    ReportPropertyChanging(""NoteId"");
4446                    _NoteId = StructuralObject.SetValidValue(value, ""NoteId"");
4447                    ReportPropertyChanged(""NoteId"");
4448                    OnNoteIdChanged();
4449                }
4450            }
4451        }
4452        private global::System.Int32 _NoteId;
4453        partial void OnNoteIdChanging(global::System.Int32 value);
4454        partial void OnNoteIdChanged();
4455    
4456        /// <summary>
4457        /// No Metadata Documentation available.
4458        /// </summary>
4459        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
4460        [DataMemberAttribute()]
4461        public global::System.String Note
4462        {
4463            get
4464            {
4465                return _Note;
4466            }
4467            set
4468            {
4469                OnNoteChanging(value);
4470                ReportPropertyChanging(""Note"");
4471                _Note = StructuralObject.SetValidValue(value, false, ""Note"");
4472                ReportPropertyChanged(""Note"");
4473                OnNoteChanged();
4474            }
4475        }
4476        private global::System.String _Note;
4477        partial void OnNoteChanging(global::System.String value);
4478        partial void OnNoteChanged();
4479
4480        #endregion
4481
4482        #region Navigation Properties
4483    
4484        /// <summary>
4485        /// No Metadata Documentation available.
4486        /// </summary>
4487        [XmlIgnoreAttribute()]
4488        [SoapIgnoreAttribute()]
4489        [DataMemberAttribute()]
4490        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Order_OrderNotes"", ""Order"")]
4491        public OrderMm Order
4492        {
4493            get
4494            {
4495                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderNotes"", ""Order"").Value;
4496            }
4497            set
4498            {
4499                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderNotes"", ""Order"").Value = value;
4500            }
4501        }
4502        /// <summary>
4503        /// No Metadata Documentation available.
4504        /// </summary>
4505        [BrowsableAttribute(false)]
4506        [DataMemberAttribute()]
4507        public EntityReference<OrderMm> OrderReference
4508        {
4509            get
4510            {
4511                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderNotes"", ""Order"");
4512            }
4513            set
4514            {
4515                if ((value != null))
4516                {
4517                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<OrderMm>(""MonsterNamespace.Order_OrderNotes"", ""Order"", value);
4518                }
4519            }
4520        }
4521
4522        #endregion
4523
4524    }
4525    
4526    /// <summary>
4527    /// No Metadata Documentation available.
4528    /// </summary>
4529    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""OrderQualityCheckMm"")]
4530    [Serializable()]
4531    [DataContractAttribute(IsReference=true)]
4532    public partial class OrderQualityCheckMm : EntityObject
4533    {
4534        #region Factory Method
4535    
4536        /// <summary>
4537        /// Create a new OrderQualityCheckMm object.
4538        /// </summary>
4539        /// <param name=""orderId"">Initial value of the OrderId property.</param>
4540        /// <param name=""checkedBy"">Initial value of the CheckedBy property.</param>
4541        /// <param name=""checkedDateTime"">Initial value of the CheckedDateTime property.</param>
4542        public static OrderQualityCheckMm CreateOrderQualityCheckMm(global::System.Int32 orderId, global::System.String checkedBy, global::System.DateTime checkedDateTime)
4543        {
4544            OrderQualityCheckMm orderQualityCheckMm = new OrderQualityCheckMm();
4545            orderQualityCheckMm.OrderId = orderId;
4546            orderQualityCheckMm.CheckedBy = checkedBy;
4547            orderQualityCheckMm.CheckedDateTime = checkedDateTime;
4548            return orderQualityCheckMm;
4549        }
4550
4551        #endregion
4552
4553        #region Simple Properties
4554    
4555        /// <summary>
4556        /// No Metadata Documentation available.
4557        /// </summary>
4558        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
4559        [DataMemberAttribute()]
4560        public global::System.Int32 OrderId
4561        {
4562            get
4563            {
4564                return _OrderId;
4565            }
4566            set
4567            {
4568                if (_OrderId != value)
4569                {
4570                    OnOrderIdChanging(value);
4571                    ReportPropertyChanging(""OrderId"");
4572                    _OrderId = StructuralObject.SetValidValue(value, ""OrderId"");
4573                    ReportPropertyChanged(""OrderId"");
4574                    OnOrderIdChanged();
4575                }
4576            }
4577        }
4578        private global::System.Int32 _OrderId;
4579        partial void OnOrderIdChanging(global::System.Int32 value);
4580        partial void OnOrderIdChanged();
4581    
4582        /// <summary>
4583        /// No Metadata Documentation available.
4584        /// </summary>
4585        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
4586        [DataMemberAttribute()]
4587        public global::System.String CheckedBy
4588        {
4589            get
4590            {
4591                return _CheckedBy;
4592            }
4593            set
4594            {
4595                OnCheckedByChanging(value);
4596                ReportPropertyChanging(""CheckedBy"");
4597                _CheckedBy = StructuralObject.SetValidValue(value, false, ""CheckedBy"");
4598                ReportPropertyChanged(""CheckedBy"");
4599                OnCheckedByChanged();
4600            }
4601        }
4602        private global::System.String _CheckedBy;
4603        partial void OnCheckedByChanging(global::System.String value);
4604        partial void OnCheckedByChanged();
4605    
4606        /// <summary>
4607        /// No Metadata Documentation available.
4608        /// </summary>
4609        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
4610        [DataMemberAttribute()]
4611        public global::System.DateTime CheckedDateTime
4612        {
4613            get
4614            {
4615                return _CheckedDateTime;
4616            }
4617            set
4618            {
4619                OnCheckedDateTimeChanging(value);
4620                ReportPropertyChanging(""CheckedDateTime"");
4621                _CheckedDateTime = StructuralObject.SetValidValue(value, ""CheckedDateTime"");
4622                ReportPropertyChanged(""CheckedDateTime"");
4623                OnCheckedDateTimeChanged();
4624            }
4625        }
4626        private global::System.DateTime _CheckedDateTime;
4627        partial void OnCheckedDateTimeChanging(global::System.DateTime value);
4628        partial void OnCheckedDateTimeChanged();
4629
4630        #endregion
4631
4632        #region Navigation Properties
4633    
4634        /// <summary>
4635        /// No Metadata Documentation available.
4636        /// </summary>
4637        [XmlIgnoreAttribute()]
4638        [SoapIgnoreAttribute()]
4639        [DataMemberAttribute()]
4640        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Order_QualityCheck"", ""Order"")]
4641        public OrderMm Order
4642        {
4643            get
4644            {
4645                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_QualityCheck"", ""Order"").Value;
4646            }
4647            set
4648            {
4649                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_QualityCheck"", ""Order"").Value = value;
4650            }
4651        }
4652        /// <summary>
4653        /// No Metadata Documentation available.
4654        /// </summary>
4655        [BrowsableAttribute(false)]
4656        [DataMemberAttribute()]
4657        public EntityReference<OrderMm> OrderReference
4658        {
4659            get
4660            {
4661                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OrderMm>(""MonsterNamespace.Order_QualityCheck"", ""Order"");
4662            }
4663            set
4664            {
4665                if ((value != null))
4666                {
4667                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<OrderMm>(""MonsterNamespace.Order_QualityCheck"", ""Order"", value);
4668                }
4669            }
4670        }
4671
4672        #endregion
4673
4674    }
4675    
4676    /// <summary>
4677    /// No Metadata Documentation available.
4678    /// </summary>
4679    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""PageViewMm"")]
4680    [Serializable()]
4681    [DataContractAttribute(IsReference=true)]
4682    [KnownTypeAttribute(typeof(ProductPageViewMm))]
4683    public partial class PageViewMm : EntityObject
4684    {
4685        #region Factory Method
4686    
4687        /// <summary>
4688        /// Create a new PageViewMm object.
4689        /// </summary>
4690        /// <param name=""pageViewId"">Initial value of the PageViewId property.</param>
4691        /// <param name=""username"">Initial value of the Username property.</param>
4692        /// <param name=""viewed"">Initial value of the Viewed property.</param>
4693        /// <param name=""pageUrl"">Initial value of the PageUrl property.</param>
4694        public static PageViewMm CreatePageViewMm(global::System.Int32 pageViewId, global::System.String username, global::System.DateTime viewed, global::System.String pageUrl)
4695        {
4696            PageViewMm pageViewMm = new PageViewMm();
4697            pageViewMm.PageViewId = pageViewId;
4698            pageViewMm.Username = username;
4699            pageViewMm.Viewed = viewed;
4700            pageViewMm.PageUrl = pageUrl;
4701            return pageViewMm;
4702        }
4703
4704        #endregion
4705
4706        #region Simple Properties
4707    
4708        /// <summary>
4709        /// No Metadata Documentation available.
4710        /// </summary>
4711        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
4712        [DataMemberAttribute()]
4713        public global::System.Int32 PageViewId
4714        {
4715            get
4716            {
4717                return _PageViewId;
4718            }
4719            set
4720            {
4721                if (_PageViewId != value)
4722                {
4723                    OnPageViewIdChanging(value);
4724                    ReportPropertyChanging(""PageViewId"");
4725                    _PageViewId = StructuralObject.SetValidValue(value, ""PageViewId"");
4726                    ReportPropertyChanged(""PageViewId"");
4727                    OnPageViewIdChanged();
4728                }
4729            }
4730        }
4731        private global::System.Int32 _PageViewId;
4732        partial void OnPageViewIdChanging(global::System.Int32 value);
4733        partial void OnPageViewIdChanged();
4734    
4735        /// <summary>
4736        /// No Metadata Documentation available.
4737        /// </summary>
4738        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
4739        [DataMemberAttribute()]
4740        public global::System.String Username
4741        {
4742            get
4743            {
4744                return _Username;
4745            }
4746            set
4747            {
4748                OnUsernameChanging(value);
4749                ReportPropertyChanging(""Username"");
4750                _Username = StructuralObject.SetValidValue(value, false, ""Username"");
4751                ReportPropertyChanged(""Username"");
4752                OnUsernameChanged();
4753            }
4754        }
4755        private global::System.String _Username;
4756        partial void OnUsernameChanging(global::System.String value);
4757        partial void OnUsernameChanged();
4758    
4759        /// <summary>
4760        /// No Metadata Documentation available.
4761        /// </summary>
4762        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
4763        [DataMemberAttribute()]
4764        public global::System.DateTime Viewed
4765        {
4766            get
4767            {
4768                return _Viewed;
4769            }
4770            set
4771            {
4772                OnViewedChanging(value);
4773                ReportPropertyChanging(""Viewed"");
4774                _Viewed = StructuralObject.SetValidValue(value, ""Viewed"");
4775                ReportPropertyChanged(""Viewed"");
4776                OnViewedChanged();
4777            }
4778        }
4779        private global::System.DateTime _Viewed;
4780        partial void OnViewedChanging(global::System.DateTime value);
4781        partial void OnViewedChanged();
4782    
4783        /// <summary>
4784        /// No Metadata Documentation available.
4785        /// </summary>
4786        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
4787        [DataMemberAttribute()]
4788        public global::System.String PageUrl
4789        {
4790            get
4791            {
4792                return _PageUrl;
4793            }
4794            set
4795            {
4796                OnPageUrlChanging(value);
4797                ReportPropertyChanging(""PageUrl"");
4798                _PageUrl = StructuralObject.SetValidValue(value, false, ""PageUrl"");
4799                ReportPropertyChanged(""PageUrl"");
4800                OnPageUrlChanged();
4801            }
4802        }
4803        private global::System.String _PageUrl;
4804        partial void OnPageUrlChanging(global::System.String value);
4805        partial void OnPageUrlChanged();
4806
4807        #endregion
4808
4809        #region Navigation Properties
4810    
4811        /// <summary>
4812        /// No Metadata Documentation available.
4813        /// </summary>
4814        [XmlIgnoreAttribute()]
4815        [SoapIgnoreAttribute()]
4816        [DataMemberAttribute()]
4817        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_PageViews"", ""Login"")]
4818        public LoginMm Login
4819        {
4820            get
4821            {
4822                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_PageViews"", ""Login"").Value;
4823            }
4824            set
4825            {
4826                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_PageViews"", ""Login"").Value = value;
4827            }
4828        }
4829        /// <summary>
4830        /// No Metadata Documentation available.
4831        /// </summary>
4832        [BrowsableAttribute(false)]
4833        [DataMemberAttribute()]
4834        public EntityReference<LoginMm> LoginReference
4835        {
4836            get
4837            {
4838                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_PageViews"", ""Login"");
4839            }
4840            set
4841            {
4842                if ((value != null))
4843                {
4844                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_PageViews"", ""Login"", value);
4845                }
4846            }
4847        }
4848
4849        #endregion
4850
4851    }
4852    
4853    /// <summary>
4854    /// No Metadata Documentation available.
4855    /// </summary>
4856    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""PasswordResetMm"")]
4857    [Serializable()]
4858    [DataContractAttribute(IsReference=true)]
4859    public partial class PasswordResetMm : EntityObject
4860    {
4861        #region Factory Method
4862    
4863        /// <summary>
4864        /// Create a new PasswordResetMm object.
4865        /// </summary>
4866        /// <param name=""resetNo"">Initial value of the ResetNo property.</param>
4867        /// <param name=""username"">Initial value of the Username property.</param>
4868        /// <param name=""tempPassword"">Initial value of the TempPassword property.</param>
4869        /// <param name=""emailedTo"">Initial value of the EmailedTo property.</param>
4870        public static PasswordResetMm CreatePasswordResetMm(global::System.Int32 resetNo, global::System.String username, global::System.String tempPassword, global::System.String emailedTo)
4871        {
4872            PasswordResetMm passwordResetMm = new PasswordResetMm();
4873            passwordResetMm.ResetNo = resetNo;
4874            passwordResetMm.Username = username;
4875            passwordResetMm.TempPassword = tempPassword;
4876            passwordResetMm.EmailedTo = emailedTo;
4877            return passwordResetMm;
4878        }
4879
4880        #endregion
4881
4882        #region Simple Properties
4883    
4884        /// <summary>
4885        /// No Metadata Documentation available.
4886        /// </summary>
4887        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
4888        [DataMemberAttribute()]
4889        public global::System.Int32 ResetNo
4890        {
4891            get
4892            {
4893                return _ResetNo;
4894            }
4895            set
4896            {
4897                if (_ResetNo != value)
4898                {
4899                    OnResetNoChanging(value);
4900                    ReportPropertyChanging(""ResetNo"");
4901                    _ResetNo = StructuralObject.SetValidValue(value, ""ResetNo"");
4902                    ReportPropertyChanged(""ResetNo"");
4903                    OnResetNoChanged();
4904                }
4905            }
4906        }
4907        private global::System.Int32 _ResetNo;
4908        partial void OnResetNoChanging(global::System.Int32 value);
4909        partial void OnResetNoChanged();
4910    
4911        /// <summary>
4912        /// No Metadata Documentation available.
4913        /// </summary>
4914        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
4915        [DataMemberAttribute()]
4916        public global::System.String Username
4917        {
4918            get
4919            {
4920                return _Username;
4921            }
4922            set
4923            {
4924                if (_Username != value)
4925                {
4926                    OnUsernameChanging(value);
4927                    ReportPropertyChanging(""Username"");
4928                    _Username = StructuralObject.SetValidValue(value, false, ""Username"");
4929                    ReportPropertyChanged(""Username"");
4930                    OnUsernameChanged();
4931                }
4932            }
4933        }
4934        private global::System.String _Username;
4935        partial void OnUsernameChanging(global::System.String value);
4936        partial void OnUsernameChanged();
4937    
4938        /// <summary>
4939        /// No Metadata Documentation available.
4940        /// </summary>
4941        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
4942        [DataMemberAttribute()]
4943        public global::System.String TempPassword
4944        {
4945            get
4946            {
4947                return _TempPassword;
4948            }
4949            set
4950            {
4951                OnTempPasswordChanging(value);
4952                ReportPropertyChanging(""TempPassword"");
4953                _TempPassword = StructuralObject.SetValidValue(value, false, ""TempPassword"");
4954                ReportPropertyChanged(""TempPassword"");
4955                OnTempPasswordChanged();
4956            }
4957        }
4958        private global::System.String _TempPassword;
4959        partial void OnTempPasswordChanging(global::System.String value);
4960        partial void OnTempPasswordChanged();
4961    
4962        /// <summary>
4963        /// No Metadata Documentation available.
4964        /// </summary>
4965        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
4966        [DataMemberAttribute()]
4967        public global::System.String EmailedTo
4968        {
4969            get
4970            {
4971                return _EmailedTo;
4972            }
4973            set
4974            {
4975                OnEmailedToChanging(value);
4976                ReportPropertyChanging(""EmailedTo"");
4977                _EmailedTo = StructuralObject.SetValidValue(value, false, ""EmailedTo"");
4978                ReportPropertyChanged(""EmailedTo"");
4979                OnEmailedToChanged();
4980            }
4981        }
4982        private global::System.String _EmailedTo;
4983        partial void OnEmailedToChanging(global::System.String value);
4984        partial void OnEmailedToChanged();
4985
4986        #endregion
4987
4988        #region Navigation Properties
4989    
4990        /// <summary>
4991        /// No Metadata Documentation available.
4992        /// </summary>
4993        [XmlIgnoreAttribute()]
4994        [SoapIgnoreAttribute()]
4995        [DataMemberAttribute()]
4996        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_PasswordResets"", ""Login"")]
4997        public LoginMm Login
4998        {
4999            get
5000            {
5001                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_PasswordResets"", ""Login"").Value;
5002            }
5003            set
5004            {
5005                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_PasswordResets"", ""Login"").Value = value;
5006            }
5007        }
5008        /// <summary>
5009        /// No Metadata Documentation available.
5010        /// </summary>
5011        [BrowsableAttribute(false)]
5012        [DataMemberAttribute()]
5013        public EntityReference<LoginMm> LoginReference
5014        {
5015            get
5016            {
5017                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_PasswordResets"", ""Login"");
5018            }
5019            set
5020            {
5021                if ((value != null))
5022                {
5023                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_PasswordResets"", ""Login"", value);
5024                }
5025            }
5026        }
5027
5028        #endregion
5029
5030    }
5031    
5032    /// <summary>
5033    /// No Metadata Documentation available.
5034    /// </summary>
5035    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ProductDetailMm"")]
5036    [Serializable()]
5037    [DataContractAttribute(IsReference=true)]
5038    public partial class ProductDetailMm : EntityObject
5039    {
5040        #region Factory Method
5041    
5042        /// <summary>
5043        /// Create a new ProductDetailMm object.
5044        /// </summary>
5045        /// <param name=""productId"">Initial value of the ProductId property.</param>
5046        /// <param name=""details"">Initial value of the Details property.</param>
5047        public static ProductDetailMm CreateProductDetailMm(global::System.Int32 productId, global::System.String details)
5048        {
5049            ProductDetailMm productDetailMm = new ProductDetailMm();
5050            productDetailMm.ProductId = productId;
5051            productDetailMm.Details = details;
5052            return productDetailMm;
5053        }
5054
5055        #endregion
5056
5057        #region Simple Properties
5058    
5059        /// <summary>
5060        /// No Metadata Documentation available.
5061        /// </summary>
5062        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
5063        [DataMemberAttribute()]
5064        public global::System.Int32 ProductId
5065        {
5066            get
5067            {
5068                return _ProductId;
5069            }
5070            set
5071            {
5072                if (_ProductId != value)
5073                {
5074                    OnProductIdChanging(value);
5075                    ReportPropertyChanging(""ProductId"");
5076                    _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
5077                    ReportPropertyChanged(""ProductId"");
5078                    OnProductIdChanged();
5079                }
5080            }
5081        }
5082        private global::System.Int32 _ProductId;
5083        partial void OnProductIdChanging(global::System.Int32 value);
5084        partial void OnProductIdChanged();
5085    
5086        /// <summary>
5087        /// No Metadata Documentation available.
5088        /// </summary>
5089        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
5090        [DataMemberAttribute()]
5091        public global::System.String Details
5092        {
5093            get
5094            {
5095                return _Details;
5096            }
5097            set
5098            {
5099                OnDetailsChanging(value);
5100                ReportPropertyChanging(""Details"");
5101                _Details = StructuralObject.SetValidValue(value, false, ""Details"");
5102                ReportPropertyChanged(""Details"");
5103                OnDetailsChanged();
5104            }
5105        }
5106        private global::System.String _Details;
5107        partial void OnDetailsChanging(global::System.String value);
5108        partial void OnDetailsChanged();
5109
5110        #endregion
5111
5112        #region Navigation Properties
5113    
5114        /// <summary>
5115        /// No Metadata Documentation available.
5116        /// </summary>
5117        [XmlIgnoreAttribute()]
5118        [SoapIgnoreAttribute()]
5119        [DataMemberAttribute()]
5120        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_ProductDetail"", ""Product"")]
5121        public ProductMm Product
5122        {
5123            get
5124            {
5125                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductDetail"", ""Product"").Value;
5126            }
5127            set
5128            {
5129                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductDetail"", ""Product"").Value = value;
5130            }
5131        }
5132        /// <summary>
5133        /// No Metadata Documentation available.
5134        /// </summary>
5135        [BrowsableAttribute(false)]
5136        [DataMemberAttribute()]
5137        public EntityReference<ProductMm> ProductReference
5138        {
5139            get
5140            {
5141                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductDetail"", ""Product"");
5142            }
5143            set
5144            {
5145                if ((value != null))
5146                {
5147                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductDetail"", ""Product"", value);
5148                }
5149            }
5150        }
5151
5152        #endregion
5153
5154    }
5155    
5156    /// <summary>
5157    /// No Metadata Documentation available.
5158    /// </summary>
5159    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ProductMm"")]
5160    [Serializable()]
5161    [DataContractAttribute(IsReference=true)]
5162    [KnownTypeAttribute(typeof(DiscontinuedProductMm))]
5163    public partial class ProductMm : EntityObject
5164    {
5165        #region Factory Method
5166    
5167        /// <summary>
5168        /// Create a new ProductMm object.
5169        /// </summary>
5170        /// <param name=""productId"">Initial value of the ProductId property.</param>
5171        /// <param name=""dimensions"">Initial value of the Dimensions property.</param>
5172        /// <param name=""baseConcurrency"">Initial value of the BaseConcurrency property.</param>
5173        /// <param name=""complexConcurrency"">Initial value of the ComplexConcurrency property.</param>
5174        /// <param name=""nestedComplexConcurrency"">Initial value of the NestedComplexConcurrency property.</param>
5175        public static ProductMm CreateProductMm(global::System.Int32 productId, DimensionsMm dimensions, global::System.String baseConcurrency, ConcurrencyInfoMm complexConcurrency, AuditInfoMm nestedComplexConcurrency)
5176        {
5177            ProductMm productMm = new ProductMm();
5178            productMm.ProductId = productId;
5179            productMm.Dimensions = StructuralObject.VerifyComplexObjectIsNotNull(dimensions, ""Dimensions"");
5180            productMm.BaseConcurrency = baseConcurrency;
5181            productMm.ComplexConcurrency = StructuralObject.VerifyComplexObjectIsNotNull(complexConcurrency, ""ComplexConcurrency"");
5182            productMm.NestedComplexConcurrency = StructuralObject.VerifyComplexObjectIsNotNull(nestedComplexConcurrency, ""NestedComplexConcurrency"");
5183            return productMm;
5184        }
5185
5186        #endregion
5187
5188        #region Simple Properties
5189    
5190        /// <summary>
5191        /// No Metadata Documentation available.
5192        /// </summary>
5193        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
5194        [DataMemberAttribute()]
5195        public global::System.Int32 ProductId
5196        {
5197            get
5198            {
5199                return _ProductId;
5200            }
5201            set
5202            {
5203                if (_ProductId != value)
5204                {
5205                    OnProductIdChanging(value);
5206                    ReportPropertyChanging(""ProductId"");
5207                    _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
5208                    ReportPropertyChanged(""ProductId"");
5209                    OnProductIdChanged();
5210                }
5211            }
5212        }
5213        private global::System.Int32 _ProductId;
5214        partial void OnProductIdChanging(global::System.Int32 value);
5215        partial void OnProductIdChanged();
5216    
5217        /// <summary>
5218        /// No Metadata Documentation available.
5219        /// </summary>
5220        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
5221        [DataMemberAttribute()]
5222        public global::System.String Description
5223        {
5224            get
5225            {
5226                return _Description;
5227            }
5228            set
5229            {
5230                OnDescriptionChanging(value);
5231                ReportPropertyChanging(""Description"");
5232                _Description = StructuralObject.SetValidValue(value, true, ""Description"");
5233                ReportPropertyChanged(""Description"");
5234                OnDescriptionChanged();
5235            }
5236        }
5237        private global::System.String _Description;
5238        partial void OnDescriptionChanging(global::System.String value);
5239        partial void OnDescriptionChanged();
5240    
5241        /// <summary>
5242        /// No Metadata Documentation available.
5243        /// </summary>
5244        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
5245        [DataMemberAttribute()]
5246        public global::System.String BaseConcurrency
5247        {
5248            get
5249            {
5250                return _BaseConcurrency;
5251            }
5252            set
5253            {
5254                OnBaseConcurrencyChanging(value);
5255                ReportPropertyChanging(""BaseConcurrency"");
5256                _BaseConcurrency = StructuralObject.SetValidValue(value, false, ""BaseConcurrency"");
5257                ReportPropertyChanged(""BaseConcurrency"");
5258                OnBaseConcurrencyChanged();
5259            }
5260        }
5261        private global::System.String _BaseConcurrency;
5262        partial void OnBaseConcurrencyChanging(global::System.String value);
5263        partial void OnBaseConcurrencyChanged();
5264
5265        #endregion
5266
5267        #region Complex Properties
5268    
5269        /// <summary>
5270        /// No Metadata Documentation available.
5271        /// </summary>
5272        [EdmComplexPropertyAttribute()]
5273        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
5274        [XmlElement(IsNullable=true)]
5275        [SoapElement(IsNullable=true)]
5276        [DataMemberAttribute()]
5277        public DimensionsMm Dimensions
5278        {
5279            get
5280            {
5281                _Dimensions = GetValidValue(_Dimensions, ""Dimensions"", false, _DimensionsInitialized);
5282                _DimensionsInitialized = true;
5283                return _Dimensions;
5284            }
5285            set
5286            {
5287                OnDimensionsChanging(value);
5288                ReportPropertyChanging(""Dimensions"");
5289                _Dimensions = SetValidValue(_Dimensions, value, ""Dimensions"");
5290                _DimensionsInitialized = true;
5291                ReportPropertyChanged(""Dimensions"");
5292                OnDimensionsChanged();
5293            }
5294        }
5295        private DimensionsMm _Dimensions;
5296        private bool _DimensionsInitialized;
5297        partial void OnDimensionsChanging(DimensionsMm value);
5298        partial void OnDimensionsChanged();
5299    
5300        /// <summary>
5301        /// No Metadata Documentation available.
5302        /// </summary>
5303        [EdmComplexPropertyAttribute()]
5304        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
5305        [XmlElement(IsNullable=true)]
5306        [SoapElement(IsNullable=true)]
5307        [DataMemberAttribute()]
5308        public ConcurrencyInfoMm ComplexConcurrency
5309        {
5310            get
5311            {
5312                _ComplexConcurrency = GetValidValue(_ComplexConcurrency, ""ComplexConcurrency"", false, _ComplexConcurrencyInitialized);
5313                _ComplexConcurrencyInitialized = true;
5314                return _ComplexConcurrency;
5315            }
5316            set
5317            {
5318                OnComplexConcurrencyChanging(value);
5319                ReportPropertyChanging(""ComplexConcurrency"");
5320                _ComplexConcurrency = SetValidValue(_ComplexConcurrency, value, ""ComplexConcurrency"");
5321                _ComplexConcurrencyInitialized = true;
5322                ReportPropertyChanged(""ComplexConcurrency"");
5323                OnComplexConcurrencyChanged();
5324            }
5325        }
5326        private ConcurrencyInfoMm _ComplexConcurrency;
5327        private bool _ComplexConcurrencyInitialized;
5328        partial void OnComplexConcurrencyChanging(ConcurrencyInfoMm value);
5329        partial void OnComplexConcurrencyChanged();
5330    
5331        /// <summary>
5332        /// No Metadata Documentation available.
5333        /// </summary>
5334        [EdmComplexPropertyAttribute()]
5335        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
5336        [XmlElement(IsNullable=true)]
5337        [SoapElement(IsNullable=true)]
5338        [DataMemberAttribute()]
5339        public AuditInfoMm NestedComplexConcurrency
5340        {
5341            get
5342            {
5343                _NestedComplexConcurrency = GetValidValue(_NestedComplexConcurrency, ""NestedComplexConcurrency"", false, _NestedComplexConcurrencyInitialized);
5344                _NestedComplexConcurrencyInitialized = true;
5345                return _NestedComplexConcurrency;
5346            }
5347            set
5348            {
5349                OnNestedComplexConcurrencyChanging(value);
5350                ReportPropertyChanging(""NestedComplexConcurrency"");
5351                _NestedComplexConcurrency = SetValidValue(_NestedComplexConcurrency, value, ""NestedComplexConcurrency"");
5352                _NestedComplexConcurrencyInitialized = true;
5353                ReportPropertyChanged(""NestedComplexConcurrency"");
5354                OnNestedComplexConcurrencyChanged();
5355            }
5356        }
5357        private AuditInfoMm _NestedComplexConcurrency;
5358        private bool _NestedComplexConcurrencyInitialized;
5359        partial void OnNestedComplexConcurrencyChanging(AuditInfoMm value);
5360        partial void OnNestedComplexConcurrencyChanged();
5361
5362        #endregion
5363
5364        #region Navigation Properties
5365    
5366        /// <summary>
5367        /// No Metadata Documentation available.
5368        /// </summary>
5369        [XmlIgnoreAttribute()]
5370        [SoapIgnoreAttribute()]
5371        [DataMemberAttribute()]
5372        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Products_Suppliers"", ""Suppliers"")]
5373        public EntityCollection<SupplierMm> Suppliers
5374        {
5375            get
5376            {
5377                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SupplierMm>(""MonsterNamespace.Products_Suppliers"", ""Suppliers"");
5378            }
5379            set
5380            {
5381                if ((value != null))
5382                {
5383                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SupplierMm>(""MonsterNamespace.Products_Suppliers"", ""Suppliers"", value);
5384                }
5385            }
5386        }
5387    
5388        /// <summary>
5389        /// No Metadata Documentation available.
5390        /// </summary>
5391        [XmlIgnoreAttribute()]
5392        [SoapIgnoreAttribute()]
5393        [DataMemberAttribute()]
5394        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""DiscontinuedProduct_Replacement"", ""DiscontinuedProduct"")]
5395        public EntityCollection<DiscontinuedProductMm> Replaces
5396        {
5397            get
5398            {
5399                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<DiscontinuedProductMm>(""MonsterNamespace.DiscontinuedProduct_Replacement"", ""DiscontinuedProduct"");
5400            }
5401            set
5402            {
5403                if ((value != null))
5404                {
5405                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<DiscontinuedProductMm>(""MonsterNamespace.DiscontinuedProduct_Replacement"", ""DiscontinuedProduct"", value);
5406                }
5407            }
5408        }
5409    
5410        /// <summary>
5411        /// No Metadata Documentation available.
5412        /// </summary>
5413        [XmlIgnoreAttribute()]
5414        [SoapIgnoreAttribute()]
5415        [DataMemberAttribute()]
5416        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_ProductDetail"", ""ProductDetail"")]
5417        public ProductDetailMm Detail
5418        {
5419            get
5420            {
5421                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductDetailMm>(""MonsterNamespace.Product_ProductDetail"", ""ProductDetail"").Value;
5422            }
5423            set
5424            {
5425                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductDetailMm>(""MonsterNamespace.Product_ProductDetail"", ""ProductDetail"").Value = value;
5426            }
5427        }
5428        /// <summary>
5429        /// No Metadata Documentation available.
5430        /// </summary>
5431        [BrowsableAttribute(false)]
5432        [DataMemberAttribute()]
5433        public EntityReference<ProductDetailMm> DetailReference
5434        {
5435            get
5436            {
5437                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductDetailMm>(""MonsterNamespace.Product_ProductDetail"", ""ProductDetail"");
5438            }
5439            set
5440            {
5441                if ((value != null))
5442                {
5443                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductDetailMm>(""MonsterNamespace.Product_ProductDetail"", ""ProductDetail"", value);
5444                }
5445            }
5446        }
5447    
5448        /// <summary>
5449        /// No Metadata Documentation available.
5450        /// </summary>
5451        [XmlIgnoreAttribute()]
5452        [SoapIgnoreAttribute()]
5453        [DataMemberAttribute()]
5454        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_ProductReview"", ""ProductReview"")]
5455        public EntityCollection<ProductReviewMm> Reviews
5456        {
5457            get
5458            {
5459                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProductReviewMm>(""MonsterNamespace.Product_ProductReview"", ""ProductReview"");
5460            }
5461            set
5462            {
5463                if ((value != null))
5464                {
5465                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProductReviewMm>(""MonsterNamespace.Product_ProductReview"", ""ProductReview"", value);
5466                }
5467            }
5468        }
5469    
5470        /// <summary>
5471        /// No Metadata Documentation available.
5472        /// </summary>
5473        [XmlIgnoreAttribute()]
5474        [SoapIgnoreAttribute()]
5475        [DataMemberAttribute()]
5476        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_ProductPhoto"", ""ProductPhoto"")]
5477        public EntityCollection<ProductPhotoMm> Photos
5478        {
5479            get
5480            {
5481                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProductPhotoMm>(""MonsterNamespace.Product_ProductPhoto"", ""ProductPhoto"");
5482            }
5483            set
5484            {
5485                if ((value != null))
5486                {
5487                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProductPhotoMm>(""MonsterNamespace.Product_ProductPhoto"", ""ProductPhoto"", value);
5488                }
5489            }
5490        }
5491    
5492        /// <summary>
5493        /// No Metadata Documentation available.
5494        /// </summary>
5495        [XmlIgnoreAttribute()]
5496        [SoapIgnoreAttribute()]
5497        [DataMemberAttribute()]
5498        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_Barcodes"", ""Barcodes"")]
5499        public EntityCollection<BarcodeMm> Barcodes
5500        {
5501            get
5502            {
5503                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<BarcodeMm>(""MonsterNamespace.Product_Barcodes"", ""Barcodes"");
5504            }
5505            set
5506            {
5507                if ((value != null))
5508                {
5509                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<BarcodeMm>(""MonsterNamespace.Product_Barcodes"", ""Barcodes"", value);
5510                }
5511            }
5512        }
5513
5514        #endregion
5515
5516    }
5517    
5518    /// <summary>
5519    /// No Metadata Documentation available.
5520    /// </summary>
5521    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ProductPageViewMm"")]
5522    [Serializable()]
5523    [DataContractAttribute(IsReference=true)]
5524    public partial class ProductPageViewMm : PageViewMm
5525    {
5526        #region Factory Method
5527    
5528        /// <summary>
5529        /// Create a new ProductPageViewMm object.
5530        /// </summary>
5531        /// <param name=""pageViewId"">Initial value of the PageViewId property.</param>
5532        /// <param name=""username"">Initial value of the Username property.</param>
5533        /// <param name=""viewed"">Initial value of the Viewed property.</param>
5534        /// <param name=""pageUrl"">Initial value of the PageUrl property.</param>
5535        /// <param name=""productId"">Initial value of the ProductId property.</param>
5536        public static ProductPageViewMm CreateProductPageViewMm(global::System.Int32 pageViewId, global::System.String username, global::System.DateTime viewed, global::System.String pageUrl, global::System.Int32 productId)
5537        {
5538            ProductPageViewMm productPageViewMm = new ProductPageViewMm();
5539            productPageViewMm.PageViewId = pageViewId;
5540            productPageViewMm.Username = username;
5541            productPageViewMm.Viewed = viewed;
5542            productPageViewMm.PageUrl = pageUrl;
5543            productPageViewMm.ProductId = productId;
5544            return productPageViewMm;
5545        }
5546
5547        #endregion
5548
5549        #region Simple Properties
5550    
5551        /// <summary>
5552        /// No Metadata Documentation available.
5553        /// </summary>
5554        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
5555        [DataMemberAttribute()]
5556        public global::System.Int32 ProductId
5557        {
5558            get
5559            {
5560                return _ProductId;
5561            }
5562            set
5563            {
5564                OnProductIdChanging(value);
5565                ReportPropertyChanging(""ProductId"");
5566                _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
5567                ReportPropertyChanged(""ProductId"");
5568                OnProductIdChanged();
5569            }
5570        }
5571        private global::System.Int32 _ProductId;
5572        partial void OnProductIdChanging(global::System.Int32 value);
5573        partial void OnProductIdChanged();
5574
5575        #endregion
5576
5577        #region Navigation Properties
5578    
5579        /// <summary>
5580        /// No Metadata Documentation available.
5581        /// </summary>
5582        [XmlIgnoreAttribute()]
5583        [SoapIgnoreAttribute()]
5584        [DataMemberAttribute()]
5585        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_ProductPageViews"", ""Product"")]
5586        public ProductMm Product
5587        {
5588            get
5589            {
5590                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductPageViews"", ""Product"").Value;
5591            }
5592            set
5593            {
5594                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductPageViews"", ""Product"").Value = value;
5595            }
5596        }
5597        /// <summary>
5598        /// No Metadata Documentation available.
5599        /// </summary>
5600        [BrowsableAttribute(false)]
5601        [DataMemberAttribute()]
5602        public EntityReference<ProductMm> ProductReference
5603        {
5604            get
5605            {
5606                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductPageViews"", ""Product"");
5607            }
5608            set
5609            {
5610                if ((value != null))
5611                {
5612                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductPageViews"", ""Product"", value);
5613                }
5614            }
5615        }
5616
5617        #endregion
5618
5619    }
5620    
5621    /// <summary>
5622    /// No Metadata Documentation available.
5623    /// </summary>
5624    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ProductPhotoMm"")]
5625    [Serializable()]
5626    [DataContractAttribute(IsReference=true)]
5627    public partial class ProductPhotoMm : EntityObject
5628    {
5629        #region Factory Method
5630    
5631        /// <summary>
5632        /// Create a new ProductPhotoMm object.
5633        /// </summary>
5634        /// <param name=""productId"">Initial value of the ProductId property.</param>
5635        /// <param name=""photoId"">Initial value of the PhotoId property.</param>
5636        /// <param name=""photo"">Initial value of the Photo property.</param>
5637        public static ProductPhotoMm CreateProductPhotoMm(global::System.Int32 productId, global::System.Int32 photoId, global::System.Byte[] photo)
5638        {
5639            ProductPhotoMm productPhotoMm = new ProductPhotoMm();
5640            productPhotoMm.ProductId = productId;
5641            productPhotoMm.PhotoId = photoId;
5642            productPhotoMm.Photo = photo;
5643            return productPhotoMm;
5644        }
5645
5646        #endregion
5647
5648        #region Simple Properties
5649    
5650        /// <summary>
5651        /// No Metadata Documentation available.
5652        /// </summary>
5653        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
5654        [DataMemberAttribute()]
5655        public global::System.Int32 ProductId
5656        {
5657            get
5658            {
5659                return _ProductId;
5660            }
5661            set
5662            {
5663                if (_ProductId != value)
5664                {
5665                    OnProductIdChanging(value);
5666                    ReportPropertyChanging(""ProductId"");
5667                    _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
5668                    ReportPropertyChanged(""ProductId"");
5669                    OnProductIdChanged();
5670                }
5671            }
5672        }
5673        private global::System.Int32 _ProductId;
5674        partial void OnProductIdChanging(global::System.Int32 value);
5675        partial void OnProductIdChanged();
5676    
5677        /// <summary>
5678        /// No Metadata Documentation available.
5679        /// </summary>
5680        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
5681        [DataMemberAttribute()]
5682        public global::System.Int32 PhotoId
5683        {
5684            get
5685            {
5686                return _PhotoId;
5687            }
5688            set
5689            {
5690                if (_PhotoId != value)
5691                {
5692                    OnPhotoIdChanging(value);
5693                    ReportPropertyChanging(""PhotoId"");
5694                    _PhotoId = StructuralObject.SetValidValue(value, ""PhotoId"");
5695                    ReportPropertyChanged(""PhotoId"");
5696                    OnPhotoIdChanged();
5697                }
5698            }
5699        }
5700        private global::System.Int32 _PhotoId;
5701        partial void OnPhotoIdChanging(global::System.Int32 value);
5702        partial void OnPhotoIdChanged();
5703    
5704        /// <summary>
5705        /// No Metadata Documentation available.
5706        /// </summary>
5707        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
5708        [DataMemberAttribute()]
5709        public global::System.Byte[] Photo
5710        {
5711            get
5712            {
5713                return StructuralObject.GetValidValue(_Photo);
5714            }
5715            set
5716            {
5717                OnPhotoChanging(value);
5718                ReportPropertyChanging(""Photo"");
5719                _Photo = StructuralObject.SetValidValue(value, false, ""Photo"");
5720                ReportPropertyChanged(""Photo"");
5721                OnPhotoChanged();
5722            }
5723        }
5724        private global::System.Byte[] _Photo;
5725        partial void OnPhotoChanging(global::System.Byte[] value);
5726        partial void OnPhotoChanged();
5727
5728        #endregion
5729
5730        #region Navigation Properties
5731    
5732        /// <summary>
5733        /// No Metadata Documentation available.
5734        /// </summary>
5735        [XmlIgnoreAttribute()]
5736        [SoapIgnoreAttribute()]
5737        [DataMemberAttribute()]
5738        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""ProductWebFeature_ProductPhoto"", ""ProductWebFeature"")]
5739        public EntityCollection<ProductWebFeatureMm> Features
5740        {
5741            get
5742            {
5743                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProductWebFeatureMm>(""MonsterNamespace.ProductWebFeature_ProductPhoto"", ""ProductWebFeature"");
5744            }
5745            set
5746            {
5747                if ((value != null))
5748                {
5749                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProductWebFeatureMm>(""MonsterNamespace.ProductWebFeature_ProductPhoto"", ""ProductWebFeature"", value);
5750                }
5751            }
5752        }
5753
5754        #endregion
5755
5756    }
5757    
5758    /// <summary>
5759    /// No Metadata Documentation available.
5760    /// </summary>
5761    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ProductReviewMm"")]
5762    [Serializable()]
5763    [DataContractAttribute(IsReference=true)]
5764    public partial class ProductReviewMm : EntityObject
5765    {
5766        #region Factory Method
5767    
5768        /// <summary>
5769        /// Create a new ProductReviewMm object.
5770        /// </summary>
5771        /// <param name=""productId"">Initial value of the ProductId property.</param>
5772        /// <param name=""reviewId"">Initial value of the ReviewId property.</param>
5773        /// <param name=""review"">Initial value of the Review property.</param>
5774        public static ProductReviewMm CreateProductReviewMm(global::System.Int32 productId, global::System.Int32 reviewId, global::System.String review)
5775        {
5776            ProductReviewMm productReviewMm = new ProductReviewMm();
5777            productReviewMm.ProductId = productId;
5778            productReviewMm.ReviewId = reviewId;
5779            productReviewMm.Review = review;
5780            return productReviewMm;
5781        }
5782
5783        #endregion
5784
5785        #region Simple Properties
5786    
5787        /// <summary>
5788        /// No Metadata Documentation available.
5789        /// </summary>
5790        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
5791        [DataMemberAttribute()]
5792        public global::System.Int32 ProductId
5793        {
5794            get
5795            {
5796                return _ProductId;
5797            }
5798            set
5799            {
5800                if (_ProductId != value)
5801                {
5802                    OnProductIdChanging(value);
5803                    ReportPropertyChanging(""ProductId"");
5804                    _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
5805                    ReportPropertyChanged(""ProductId"");
5806                    OnProductIdChanged();
5807                }
5808            }
5809        }
5810        private global::System.Int32 _ProductId;
5811        partial void OnProductIdChanging(global::System.Int32 value);
5812        partial void OnProductIdChanged();
5813    
5814        /// <summary>
5815        /// No Metadata Documentation available.
5816        /// </summary>
5817        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
5818        [DataMemberAttribute()]
5819        public global::System.Int32 ReviewId
5820        {
5821            get
5822            {
5823                return _ReviewId;
5824            }
5825            set
5826            {
5827                if (_ReviewId != value)
5828                {
5829                    OnReviewIdChanging(value);
5830                    ReportPropertyChanging(""ReviewId"");
5831                    _ReviewId = StructuralObject.SetValidValue(value, ""ReviewId"");
5832                    ReportPropertyChanged(""ReviewId"");
5833                    OnReviewIdChanged();
5834                }
5835            }
5836        }
5837        private global::System.Int32 _ReviewId;
5838        partial void OnReviewIdChanging(global::System.Int32 value);
5839        partial void OnReviewIdChanged();
5840    
5841        /// <summary>
5842        /// No Metadata Documentation available.
5843        /// </summary>
5844        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
5845        [DataMemberAttribute()]
5846        public global::System.String Review
5847        {
5848            get
5849            {
5850                return _Review;
5851            }
5852            set
5853            {
5854                OnReviewChanging(value);
5855                ReportPropertyChanging(""Review"");
5856                _Review = StructuralObject.SetValidValue(value, false, ""Review"");
5857                ReportPropertyChanged(""Review"");
5858                OnReviewChanged();
5859            }
5860        }
5861        private global::System.String _Review;
5862        partial void OnReviewChanging(global::System.String value);
5863        partial void OnReviewChanged();
5864
5865        #endregion
5866
5867        #region Navigation Properties
5868    
5869        /// <summary>
5870        /// No Metadata Documentation available.
5871        /// </summary>
5872        [XmlIgnoreAttribute()]
5873        [SoapIgnoreAttribute()]
5874        [DataMemberAttribute()]
5875        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Product_ProductReview"", ""Product"")]
5876        public ProductMm Product
5877        {
5878            get
5879            {
5880                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductReview"", ""Product"").Value;
5881            }
5882            set
5883            {
5884                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductReview"", ""Product"").Value = value;
5885            }
5886        }
5887        /// <summary>
5888        /// No Metadata Documentation available.
5889        /// </summary>
5890        [BrowsableAttribute(false)]
5891        [DataMemberAttribute()]
5892        public EntityReference<ProductMm> ProductReference
5893        {
5894            get
5895            {
5896                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductReview"", ""Product"");
5897            }
5898            set
5899            {
5900                if ((value != null))
5901                {
5902                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductMm>(""MonsterNamespace.Product_ProductReview"", ""Product"", value);
5903                }
5904            }
5905        }
5906    
5907        /// <summary>
5908        /// No Metadata Documentation available.
5909        /// </summary>
5910        [XmlIgnoreAttribute()]
5911        [SoapIgnoreAttribute()]
5912        [DataMemberAttribute()]
5913        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""ProductWebFeature_ProductReview"", ""ProductWebFeature"")]
5914        public EntityCollection<ProductWebFeatureMm> Features
5915        {
5916            get
5917            {
5918                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProductWebFeatureMm>(""MonsterNamespace.ProductWebFeature_ProductReview"", ""ProductWebFeature"");
5919            }
5920            set
5921            {
5922                if ((value != null))
5923                {
5924                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProductWebFeatureMm>(""MonsterNamespace.ProductWebFeature_ProductReview"", ""ProductWebFeature"", value);
5925                }
5926            }
5927        }
5928
5929        #endregion
5930
5931    }
5932    
5933    /// <summary>
5934    /// No Metadata Documentation available.
5935    /// </summary>
5936    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ProductWebFeatureMm"")]
5937    [Serializable()]
5938    [DataContractAttribute(IsReference=true)]
5939    public partial class ProductWebFeatureMm : EntityObject
5940    {
5941        #region Factory Method
5942    
5943        /// <summary>
5944        /// Create a new ProductWebFeatureMm object.
5945        /// </summary>
5946        /// <param name=""featureId"">Initial value of the FeatureId property.</param>
5947        /// <param name=""reviewId"">Initial value of the ReviewId property.</param>
5948        /// <param name=""heading"">Initial value of the Heading property.</param>
5949        public static ProductWebFeatureMm CreateProductWebFeatureMm(global::System.Int32 featureId, global::System.Int32 reviewId, global::System.String heading)
5950        {
5951            ProductWebFeatureMm productWebFeatureMm = new ProductWebFeatureMm();
5952            productWebFeatureMm.FeatureId = featureId;
5953            productWebFeatureMm.ReviewId = reviewId;
5954            productWebFeatureMm.Heading = heading;
5955            return productWebFeatureMm;
5956        }
5957
5958        #endregion
5959
5960        #region Simple Properties
5961    
5962        /// <summary>
5963        /// No Metadata Documentation available.
5964        /// </summary>
5965        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
5966        [DataMemberAttribute()]
5967        public global::System.Int32 FeatureId
5968        {
5969            get
5970            {
5971                return _FeatureId;
5972            }
5973            set
5974            {
5975                if (_FeatureId != value)
5976                {
5977                    OnFeatureIdChanging(value);
5978                    ReportPropertyChanging(""FeatureId"");
5979                    _FeatureId = StructuralObject.SetValidValue(value, ""FeatureId"");
5980                    ReportPropertyChanged(""FeatureId"");
5981                    OnFeatureIdChanged();
5982                }
5983            }
5984        }
5985        private global::System.Int32 _FeatureId;
5986        partial void OnFeatureIdChanging(global::System.Int32 value);
5987        partial void OnFeatureIdChanged();
5988    
5989        /// <summary>
5990        /// No Metadata Documentation available.
5991        /// </summary>
5992        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
5993        [DataMemberAttribute()]
5994        public Nullable<global::System.Int32> ProductId
5995        {
5996            get
5997            {
5998                return _ProductId;
5999            }
6000            set
6001            {
6002                OnProductIdChanging(value);
6003                ReportPropertyChanging(""ProductId"");
6004                _ProductId = StructuralObject.SetValidValue(value, ""ProductId"");
6005                ReportPropertyChanged(""ProductId"");
6006                OnProductIdChanged();
6007            }
6008        }
6009        private Nullable<global::System.Int32> _ProductId;
6010        partial void OnProductIdChanging(Nullable<global::System.Int32> value);
6011        partial void OnProductIdChanged();
6012    
6013        /// <summary>
6014        /// No Metadata Documentation available.
6015        /// </summary>
6016        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
6017        [DataMemberAttribute()]
6018        public Nullable<global::System.Int32> PhotoId
6019        {
6020            get
6021            {
6022                return _PhotoId;
6023            }
6024            set
6025            {
6026                OnPhotoIdChanging(value);
6027                ReportPropertyChanging(""PhotoId"");
6028                _PhotoId = StructuralObject.SetValidValue(value, ""PhotoId"");
6029                ReportPropertyChanged(""PhotoId"");
6030                OnPhotoIdChanged();
6031            }
6032        }
6033        private Nullable<global::System.Int32> _PhotoId;
6034        partial void OnPhotoIdChanging(Nullable<global::System.Int32> value);
6035        partial void OnPhotoIdChanged();
6036    
6037        /// <summary>
6038        /// No Metadata Documentation available.
6039        /// </summary>
6040        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
6041        [DataMemberAttribute()]
6042        public global::System.Int32 ReviewId
6043        {
6044            get
6045            {
6046                return _ReviewId;
6047            }
6048            set
6049            {
6050                OnReviewIdChanging(value);
6051                ReportPropertyChanging(""ReviewId"");
6052                _ReviewId = StructuralObject.SetValidValue(value, ""ReviewId"");
6053                ReportPropertyChanged(""ReviewId"");
6054                OnReviewIdChanged();
6055            }
6056        }
6057        private global::System.Int32 _ReviewId;
6058        partial void OnReviewIdChanging(global::System.Int32 value);
6059        partial void OnReviewIdChanged();
6060    
6061        /// <summary>
6062        /// No Metadata Documentation available.
6063        /// </summary>
6064        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
6065        [DataMemberAttribute()]
6066        public global::System.String Heading
6067        {
6068            get
6069            {
6070                return _Heading;
6071            }
6072            set
6073            {
6074                OnHeadingChanging(value);
6075                ReportPropertyChanging(""Heading"");
6076                _Heading = StructuralObject.SetValidValue(value, false, ""Heading"");
6077                ReportPropertyChanged(""Heading"");
6078                OnHeadingChanged();
6079            }
6080        }
6081        private global::System.String _Heading;
6082        partial void OnHeadingChanging(global::System.String value);
6083        partial void OnHeadingChanged();
6084
6085        #endregion
6086
6087        #region Navigation Properties
6088    
6089        /// <summary>
6090        /// No Metadata Documentation available.
6091        /// </summary>
6092        [XmlIgnoreAttribute()]
6093        [SoapIgnoreAttribute()]
6094        [DataMemberAttribute()]
6095        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""ProductWebFeature_ProductReview"", ""ProductReview"")]
6096        public ProductReviewMm Review
6097        {
6098            get
6099            {
6100                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductReviewMm>(""MonsterNamespace.ProductWebFeature_ProductReview"", ""ProductReview"").Value;
6101            }
6102            set
6103            {
6104                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductReviewMm>(""MonsterNamespace.ProductWebFeature_ProductReview"", ""ProductReview"").Value = value;
6105            }
6106        }
6107        /// <summary>
6108        /// No Metadata Documentation available.
6109        /// </summary>
6110        [BrowsableAttribute(false)]
6111        [DataMemberAttribute()]
6112        public EntityReference<ProductReviewMm> ReviewReference
6113        {
6114            get
6115            {
6116                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductReviewMm>(""MonsterNamespace.ProductWebFeature_ProductReview"", ""ProductReview"");
6117            }
6118            set
6119            {
6120                if ((value != null))
6121                {
6122                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductReviewMm>(""MonsterNamespace.ProductWebFeature_ProductReview"", ""ProductReview"", value);
6123                }
6124            }
6125        }
6126    
6127        /// <summary>
6128        /// No Metadata Documentation available.
6129        /// </summary>
6130        [XmlIgnoreAttribute()]
6131        [SoapIgnoreAttribute()]
6132        [DataMemberAttribute()]
6133        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""ProductWebFeature_ProductPhoto"", ""ProductPhoto"")]
6134        public ProductPhotoMm Photo
6135        {
6136            get
6137            {
6138                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductPhotoMm>(""MonsterNamespace.ProductWebFeature_ProductPhoto"", ""ProductPhoto"").Value;
6139            }
6140            set
6141            {
6142                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductPhotoMm>(""MonsterNamespace.ProductWebFeature_ProductPhoto"", ""ProductPhoto"").Value = value;
6143            }
6144        }
6145        /// <summary>
6146        /// No Metadata Documentation available.
6147        /// </summary>
6148        [BrowsableAttribute(false)]
6149        [DataMemberAttribute()]
6150        public EntityReference<ProductPhotoMm> PhotoReference
6151        {
6152            get
6153            {
6154                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProductPhotoMm>(""MonsterNamespace.ProductWebFeature_ProductPhoto"", ""ProductPhoto"");
6155            }
6156            set
6157            {
6158                if ((value != null))
6159                {
6160                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProductPhotoMm>(""MonsterNamespace.ProductWebFeature_ProductPhoto"", ""ProductPhoto"", value);
6161                }
6162            }
6163        }
6164
6165        #endregion
6166
6167    }
6168    
6169    /// <summary>
6170    /// No Metadata Documentation available.
6171    /// </summary>
6172    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ResolutionMm"")]
6173    [Serializable()]
6174    [DataContractAttribute(IsReference=true)]
6175    public partial class ResolutionMm : EntityObject
6176    {
6177        #region Factory Method
6178    
6179        /// <summary>
6180        /// Create a new ResolutionMm object.
6181        /// </summary>
6182        /// <param name=""resolutionId"">Initial value of the ResolutionId property.</param>
6183        /// <param name=""details"">Initial value of the Details property.</param>
6184        public static ResolutionMm CreateResolutionMm(global::System.Int32 resolutionId, global::System.String details)
6185        {
6186            ResolutionMm resolutionMm = new ResolutionMm();
6187            resolutionMm.ResolutionId = resolutionId;
6188            resolutionMm.Details = details;
6189            return resolutionMm;
6190        }
6191
6192        #endregion
6193
6194        #region Simple Properties
6195    
6196        /// <summary>
6197        /// No Metadata Documentation available.
6198        /// </summary>
6199        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
6200        [DataMemberAttribute()]
6201        public global::System.Int32 ResolutionId
6202        {
6203            get
6204            {
6205                return _ResolutionId;
6206            }
6207            set
6208            {
6209                if (_ResolutionId != value)
6210                {
6211                    OnResolutionIdChanging(value);
6212                    ReportPropertyChanging(""ResolutionId"");
6213                    _ResolutionId = StructuralObject.SetValidValue(value, ""ResolutionId"");
6214                    ReportPropertyChanged(""ResolutionId"");
6215                    OnResolutionIdChanged();
6216                }
6217            }
6218        }
6219        private global::System.Int32 _ResolutionId;
6220        partial void OnResolutionIdChanging(global::System.Int32 value);
6221        partial void OnResolutionIdChanged();
6222    
6223        /// <summary>
6224        /// No Metadata Documentation available.
6225        /// </summary>
6226        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
6227        [DataMemberAttribute()]
6228        public global::System.String Details
6229        {
6230            get
6231            {
6232                return _Details;
6233            }
6234            set
6235            {
6236                OnDetailsChanging(value);
6237                ReportPropertyChanging(""Details"");
6238                _Details = StructuralObject.SetValidValue(value, false, ""Details"");
6239                ReportPropertyChanged(""Details"");
6240                OnDetailsChanged();
6241            }
6242        }
6243        private global::System.String _Details;
6244        partial void OnDetailsChanging(global::System.String value);
6245        partial void OnDetailsChanged();
6246
6247        #endregion
6248
6249        #region Navigation Properties
6250    
6251        /// <summary>
6252        /// No Metadata Documentation available.
6253        /// </summary>
6254        [XmlIgnoreAttribute()]
6255        [SoapIgnoreAttribute()]
6256        [DataMemberAttribute()]
6257        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Complaint_Resolution"", ""Complaint"")]
6258        public ComplaintMm Complaint
6259        {
6260            get
6261            {
6262                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComplaintMm>(""MonsterNamespace.Complaint_Resolution"", ""Complaint"").Value;
6263            }
6264            set
6265            {
6266                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComplaintMm>(""MonsterNamespace.Complaint_Resolution"", ""Complaint"").Value = value;
6267            }
6268        }
6269        /// <summary>
6270        /// No Metadata Documentation available.
6271        /// </summary>
6272        [BrowsableAttribute(false)]
6273        [DataMemberAttribute()]
6274        public EntityReference<ComplaintMm> ComplaintReference
6275        {
6276            get
6277            {
6278                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ComplaintMm>(""MonsterNamespace.Complaint_Resolution"", ""Complaint"");
6279            }
6280            set
6281            {
6282                if ((value != null))
6283                {
6284                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ComplaintMm>(""MonsterNamespace.Complaint_Resolution"", ""Complaint"", value);
6285                }
6286            }
6287        }
6288
6289        #endregion
6290
6291    }
6292    
6293    /// <summary>
6294    /// No Metadata Documentation available.
6295    /// </summary>
6296    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""RSATokenMm"")]
6297    [Serializable()]
6298    [DataContractAttribute(IsReference=true)]
6299    public partial class RSATokenMm : EntityObject
6300    {
6301        #region Factory Method
6302    
6303        /// <summary>
6304        /// Create a new RSATokenMm object.
6305        /// </summary>
6306        /// <param name=""serial"">Initial value of the Serial property.</param>
6307        /// <param name=""issued"">Initial value of the Issued property.</param>
6308        public static RSATokenMm CreateRSATokenMm(global::System.String serial, global::System.DateTime issued)
6309        {
6310            RSATokenMm rSATokenMm = new RSATokenMm();
6311            rSATokenMm.Serial = serial;
6312            rSATokenMm.Issued = issued;
6313            return rSATokenMm;
6314        }
6315
6316        #endregion
6317
6318        #region Simple Properties
6319    
6320        /// <summary>
6321        /// No Metadata Documentation available.
6322        /// </summary>
6323        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
6324        [DataMemberAttribute()]
6325        public global::System.String Serial
6326        {
6327            get
6328            {
6329                return _Serial;
6330            }
6331            set
6332            {
6333                if (_Serial != value)
6334                {
6335                    OnSerialChanging(value);
6336                    ReportPropertyChanging(""Serial"");
6337                    _Serial = StructuralObject.SetValidValue(value, false, ""Serial"");
6338                    ReportPropertyChanged(""Serial"");
6339                    OnSerialChanged();
6340                }
6341            }
6342        }
6343        private global::System.String _Serial;
6344        partial void OnSerialChanging(global::System.String value);
6345        partial void OnSerialChanged();
6346    
6347        /// <summary>
6348        /// No Metadata Documentation available.
6349        /// </summary>
6350        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
6351        [DataMemberAttribute()]
6352        public global::System.DateTime Issued
6353        {
6354            get
6355            {
6356                return _Issued;
6357            }
6358            set
6359            {
6360                OnIssuedChanging(value);
6361                ReportPropertyChanging(""Issued"");
6362                _Issued = StructuralObject.SetValidValue(value, ""Issued"");
6363                ReportPropertyChanged(""Issued"");
6364                OnIssuedChanged();
6365            }
6366        }
6367        private global::System.DateTime _Issued;
6368        partial void OnIssuedChanging(global::System.DateTime value);
6369        partial void OnIssuedChanged();
6370
6371        #endregion
6372
6373        #region Navigation Properties
6374    
6375        /// <summary>
6376        /// No Metadata Documentation available.
6377        /// </summary>
6378        [XmlIgnoreAttribute()]
6379        [SoapIgnoreAttribute()]
6380        [DataMemberAttribute()]
6381        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_RSAToken"", ""Login"")]
6382        public LoginMm Login
6383        {
6384            get
6385            {
6386                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_RSAToken"", ""Login"").Value;
6387            }
6388            set
6389            {
6390                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_RSAToken"", ""Login"").Value = value;
6391            }
6392        }
6393        /// <summary>
6394        /// No Metadata Documentation available.
6395        /// </summary>
6396        [BrowsableAttribute(false)]
6397        [DataMemberAttribute()]
6398        public EntityReference<LoginMm> LoginReference
6399        {
6400            get
6401            {
6402                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_RSAToken"", ""Login"");
6403            }
6404            set
6405            {
6406                if ((value != null))
6407                {
6408                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_RSAToken"", ""Login"", value);
6409                }
6410            }
6411        }
6412
6413        #endregion
6414
6415    }
6416    
6417    /// <summary>
6418    /// No Metadata Documentation available.
6419    /// </summary>
6420    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""SmartCardMm"")]
6421    [Serializable()]
6422    [DataContractAttribute(IsReference=true)]
6423    public partial class SmartCardMm : EntityObject
6424    {
6425        #region Factory Method
6426    
6427        /// <summary>
6428        /// Create a new SmartCardMm object.
6429        /// </summary>
6430        /// <param name=""username"">Initial value of the Username property.</param>
6431        /// <param name=""cardSerial"">Initial value of the CardSerial property.</param>
6432        /// <param name=""issued"">Initial value of the Issued property.</param>
6433        public static SmartCardMm CreateSmartCardMm(global::System.String username, global::System.String cardSerial, global::System.DateTime issued)
6434        {
6435            SmartCardMm smartCardMm = new SmartCardMm();
6436            smartCardMm.Username = username;
6437            smartCardMm.CardSerial = cardSerial;
6438            smartCardMm.Issued = issued;
6439            return smartCardMm;
6440        }
6441
6442        #endregion
6443
6444        #region Simple Properties
6445    
6446        /// <summary>
6447        /// No Metadata Documentation available.
6448        /// </summary>
6449        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
6450        [DataMemberAttribute()]
6451        public global::System.String Username
6452        {
6453            get
6454            {
6455                return _Username;
6456            }
6457            set
6458            {
6459                if (_Username != value)
6460                {
6461                    OnUsernameChanging(value);
6462                    ReportPropertyChanging(""Username"");
6463                    _Username = StructuralObject.SetValidValue(value, false, ""Username"");
6464                    ReportPropertyChanged(""Username"");
6465                    OnUsernameChanged();
6466                }
6467            }
6468        }
6469        private global::System.String _Username;
6470        partial void OnUsernameChanging(global::System.String value);
6471        partial void OnUsernameChanged();
6472    
6473        /// <summary>
6474        /// No Metadata Documentation available.
6475        /// </summary>
6476        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
6477        [DataMemberAttribute()]
6478        public global::System.String CardSerial
6479        {
6480            get
6481            {
6482                return _CardSerial;
6483            }
6484            set
6485            {
6486                OnCardSerialChanging(value);
6487                ReportPropertyChanging(""CardSerial"");
6488                _CardSerial = StructuralObject.SetValidValue(value, false, ""CardSerial"");
6489                ReportPropertyChanged(""CardSerial"");
6490                OnCardSerialChanged();
6491            }
6492        }
6493        private global::System.String _CardSerial;
6494        partial void OnCardSerialChanging(global::System.String value);
6495        partial void OnCardSerialChanged();
6496    
6497        /// <summary>
6498        /// No Metadata Documentation available.
6499        /// </summary>
6500        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
6501        [DataMemberAttribute()]
6502        public global::System.DateTime Issued
6503        {
6504            get
6505            {
6506                return _Issued;
6507            }
6508            set
6509            {
6510                OnIssuedChanging(value);
6511                ReportPropertyChanging(""Issued"");
6512                _Issued = StructuralObject.SetValidValue(value, ""Issued"");
6513                ReportPropertyChanged(""Issued"");
6514                OnIssuedChanged();
6515            }
6516        }
6517        private global::System.DateTime _Issued;
6518        partial void OnIssuedChanging(global::System.DateTime value);
6519        partial void OnIssuedChanged();
6520
6521        #endregion
6522
6523        #region Navigation Properties
6524    
6525        /// <summary>
6526        /// No Metadata Documentation available.
6527        /// </summary>
6528        [XmlIgnoreAttribute()]
6529        [SoapIgnoreAttribute()]
6530        [DataMemberAttribute()]
6531        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Login_SmartCard"", ""Login"")]
6532        public LoginMm Login
6533        {
6534            get
6535            {
6536                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_SmartCard"", ""Login"").Value;
6537            }
6538            set
6539            {
6540                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_SmartCard"", ""Login"").Value = value;
6541            }
6542        }
6543        /// <summary>
6544        /// No Metadata Documentation available.
6545        /// </summary>
6546        [BrowsableAttribute(false)]
6547        [DataMemberAttribute()]
6548        public EntityReference<LoginMm> LoginReference
6549        {
6550            get
6551            {
6552                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LoginMm>(""MonsterNamespace.Login_SmartCard"", ""Login"");
6553            }
6554            set
6555            {
6556                if ((value != null))
6557                {
6558                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LoginMm>(""MonsterNamespace.Login_SmartCard"", ""Login"", value);
6559                }
6560            }
6561        }
6562    
6563        /// <summary>
6564        /// No Metadata Documentation available.
6565        /// </summary>
6566        [XmlIgnoreAttribute()]
6567        [SoapIgnoreAttribute()]
6568        [DataMemberAttribute()]
6569        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""LastLogin_SmartCard"", ""LastLogin"")]
6570        public LastLoginMm LastLogin
6571        {
6572            get
6573            {
6574                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LastLoginMm>(""MonsterNamespace.LastLogin_SmartCard"", ""LastLogin"").Value;
6575            }
6576            set
6577            {
6578                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LastLoginMm>(""MonsterNamespace.LastLogin_SmartCard"", ""LastLogin"").Value = value;
6579            }
6580        }
6581        /// <summary>
6582        /// No Metadata Documentation available.
6583        /// </summary>
6584        [BrowsableAttribute(false)]
6585        [DataMemberAttribute()]
6586        public EntityReference<LastLoginMm> LastLoginReference
6587        {
6588            get
6589            {
6590                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<LastLoginMm>(""MonsterNamespace.LastLogin_SmartCard"", ""LastLogin"");
6591            }
6592            set
6593            {
6594                if ((value != null))
6595                {
6596                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<LastLoginMm>(""MonsterNamespace.LastLogin_SmartCard"", ""LastLogin"", value);
6597                }
6598            }
6599        }
6600
6601        #endregion
6602
6603    }
6604    
6605    /// <summary>
6606    /// No Metadata Documentation available.
6607    /// </summary>
6608    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""SupplierInfoMm"")]
6609    [Serializable()]
6610    [DataContractAttribute(IsReference=true)]
6611    public partial class SupplierInfoMm : EntityObject
6612    {
6613        #region Factory Method
6614    
6615        /// <summary>
6616        /// Create a new SupplierInfoMm object.
6617        /// </summary>
6618        /// <param name=""supplierInfoId"">Initial value of the SupplierInfoId property.</param>
6619        /// <param name=""information"">Initial value of the Information property.</param>
6620        public static SupplierInfoMm CreateSupplierInfoMm(global::System.Int32 supplierInfoId, global::System.String information)
6621        {
6622            SupplierInfoMm supplierInfoMm = new SupplierInfoMm();
6623            supplierInfoMm.SupplierInfoId = supplierInfoId;
6624            supplierInfoMm.Information = information;
6625            return supplierInfoMm;
6626        }
6627
6628        #endregion
6629
6630        #region Simple Properties
6631    
6632        /// <summary>
6633        /// No Metadata Documentation available.
6634        /// </summary>
6635        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
6636        [DataMemberAttribute()]
6637        public global::System.Int32 SupplierInfoId
6638        {
6639            get
6640            {
6641                return _SupplierInfoId;
6642            }
6643            set
6644            {
6645                if (_SupplierInfoId != value)
6646                {
6647                    OnSupplierInfoIdChanging(value);
6648                    ReportPropertyChanging(""SupplierInfoId"");
6649                    _SupplierInfoId = StructuralObject.SetValidValue(value, ""SupplierInfoId"");
6650                    ReportPropertyChanged(""SupplierInfoId"");
6651                    OnSupplierInfoIdChanged();
6652                }
6653            }
6654        }
6655        private global::System.Int32 _SupplierInfoId;
6656        partial void OnSupplierInfoIdChanging(global::System.Int32 value);
6657        partial void OnSupplierInfoIdChanged();
6658    
6659        /// <summary>
6660        /// No Metadata Documentation available.
6661        /// </summary>
6662        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
6663        [DataMemberAttribute()]
6664        public global::System.String Information
6665        {
6666            get
6667            {
6668                return _Information;
6669            }
6670            set
6671            {
6672                OnInformationChanging(value);
6673                ReportPropertyChanging(""Information"");
6674                _Information = StructuralObject.SetValidValue(value, false, ""Information"");
6675                ReportPropertyChanged(""Information"");
6676                OnInformationChanged();
6677            }
6678        }
6679        private global::System.String _Information;
6680        partial void OnInformationChanging(global::System.String value);
6681        partial void OnInformationChanged();
6682
6683        #endregion
6684
6685        #region Navigation Properties
6686    
6687        /// <summary>
6688        /// No Metadata Documentation available.
6689        /// </summary>
6690        [XmlIgnoreAttribute()]
6691        [SoapIgnoreAttribute()]
6692        [DataMemberAttribute()]
6693        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Supplier_SupplierInfo"", ""Supplier"")]
6694        public SupplierMm Supplier
6695        {
6696            get
6697            {
6698                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_SupplierInfo"", ""Supplier"").Value;
6699            }
6700            set
6701            {
6702                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_SupplierInfo"", ""Supplier"").Value = value;
6703            }
6704        }
6705        /// <summary>
6706        /// No Metadata Documentation available.
6707        /// </summary>
6708        [BrowsableAttribute(false)]
6709        [DataMemberAttribute()]
6710        public EntityReference<SupplierMm> SupplierReference
6711        {
6712            get
6713            {
6714                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_SupplierInfo"", ""Supplier"");
6715            }
6716            set
6717            {
6718                if ((value != null))
6719                {
6720                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SupplierMm>(""MonsterNamespace.Supplier_SupplierInfo"", ""Supplier"", value);
6721                }
6722            }
6723        }
6724
6725        #endregion
6726
6727    }
6728    
6729    /// <summary>
6730    /// No Metadata Documentation available.
6731    /// </summary>
6732    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""SupplierLogoMm"")]
6733    [Serializable()]
6734    [DataContractAttribute(IsReference=true)]
6735    public partial class SupplierLogoMm : EntityObject
6736    {
6737        #region Factory Method
6738    
6739        /// <summary>
6740        /// Create a new SupplierLogoMm object.
6741        /// </summary>
6742        /// <param name=""supplierId"">Initial value of the SupplierId property.</param>
6743        /// <param name=""logo"">Initial value of the Logo property.</param>
6744        public static SupplierLogoMm CreateSupplierLogoMm(global::System.Int32 supplierId, global::System.Byte[] logo)
6745        {
6746            SupplierLogoMm supplierLogoMm = new SupplierLogoMm();
6747            supplierLogoMm.SupplierId = supplierId;
6748            supplierLogoMm.Logo = logo;
6749            return supplierLogoMm;
6750        }
6751
6752        #endregion
6753
6754        #region Simple Properties
6755    
6756        /// <summary>
6757        /// No Metadata Documentation available.
6758        /// </summary>
6759        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
6760        [DataMemberAttribute()]
6761        public global::System.Int32 SupplierId
6762        {
6763            get
6764            {
6765                return _SupplierId;
6766            }
6767            set
6768            {
6769                if (_SupplierId != value)
6770                {
6771                    OnSupplierIdChanging(value);
6772                    ReportPropertyChanging(""SupplierId"");
6773                    _SupplierId = StructuralObject.SetValidValue(value, ""SupplierId"");
6774                    ReportPropertyChanged(""SupplierId"");
6775                    OnSupplierIdChanged();
6776                }
6777            }
6778        }
6779        private global::System.Int32 _SupplierId;
6780        partial void OnSupplierIdChanging(global::System.Int32 value);
6781        partial void OnSupplierIdChanged();
6782    
6783        /// <summary>
6784        /// No Metadata Documentation available.
6785        /// </summary>
6786        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
6787        [DataMemberAttribute()]
6788        public global::System.Byte[] Logo
6789        {
6790            get
6791            {
6792                return StructuralObject.GetValidValue(_Logo);
6793            }
6794            set
6795            {
6796                OnLogoChanging(value);
6797                ReportPropertyChanging(""Logo"");
6798                _Logo = StructuralObject.SetValidValue(value, false, ""Logo"");
6799                ReportPropertyChanged(""Logo"");
6800                OnLogoChanged();
6801            }
6802        }
6803        private global::System.Byte[] _Logo;
6804        partial void OnLogoChanging(global::System.Byte[] value);
6805        partial void OnLogoChanged();
6806
6807        #endregion
6808
6809    }
6810    
6811    /// <summary>
6812    /// No Metadata Documentation available.
6813    /// </summary>
6814    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""SupplierMm"")]
6815    [Serializable()]
6816    [DataContractAttribute(IsReference=true)]
6817    public partial class SupplierMm : EntityObject
6818    {
6819        #region Factory Method
6820    
6821        /// <summary>
6822        /// Create a new SupplierMm object.
6823        /// </summary>
6824        /// <param name=""supplierId"">Initial value of the SupplierId property.</param>
6825        /// <param name=""name"">Initial value of the Name property.</param>
6826        public static SupplierMm CreateSupplierMm(global::System.Int32 supplierId, global::System.String name)
6827        {
6828            SupplierMm supplierMm = new SupplierMm();
6829            supplierMm.SupplierId = supplierId;
6830            supplierMm.Name = name;
6831            return supplierMm;
6832        }
6833
6834        #endregion
6835
6836        #region Simple Properties
6837    
6838        /// <summary>
6839        /// No Metadata Documentation available.
6840        /// </summary>
6841        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
6842        [DataMemberAttribute()]
6843        public global::System.Int32 SupplierId
6844        {
6845            get
6846            {
6847                return _SupplierId;
6848            }
6849            set
6850            {
6851                if (_SupplierId != value)
6852                {
6853                    OnSupplierIdChanging(value);
6854                    ReportPropertyChanging(""SupplierId"");
6855                    _SupplierId = StructuralObject.SetValidValue(value, ""SupplierId"");
6856                    ReportPropertyChanged(""SupplierId"");
6857                    OnSupplierIdChanged();
6858                }
6859            }
6860        }
6861        private global::System.Int32 _SupplierId;
6862        partial void OnSupplierIdChanging(global::System.Int32 value);
6863        partial void OnSupplierIdChanged();
6864    
6865        /// <summary>
6866        /// No Metadata Documentation available.
6867        /// </summary>
6868        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
6869        [DataMemberAttribute()]
6870        public global::System.String Name
6871        {
6872            get
6873            {
6874                return _Name;
6875            }
6876            set
6877            {
6878                OnNameChanging(value);
6879                ReportPropertyChanging(""Name"");
6880                _Name = StructuralObject.SetValidValue(value, false, ""Name"");
6881                ReportPropertyChanged(""Name"");
6882                OnNameChanged();
6883            }
6884        }
6885        private global::System.String _Name;
6886        partial void OnNameChanging(global::System.String value);
6887        partial void OnNameChanged();
6888
6889        #endregion
6890
6891        #region Navigation Properties
6892    
6893        /// <summary>
6894        /// No Metadata Documentation available.
6895        /// </summary>
6896        [XmlIgnoreAttribute()]
6897        [SoapIgnoreAttribute()]
6898        [DataMemberAttribute()]
6899        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Products_Suppliers"", ""Products"")]
6900        public EntityCollection<ProductMm> Products
6901        {
6902            get
6903            {
6904                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProductMm>(""MonsterNamespace.Products_Suppliers"", ""Products"");
6905            }
6906            set
6907            {
6908                if ((value != null))
6909                {
6910                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProductMm>(""MonsterNamespace.Products_Suppliers"", ""Products"", value);
6911                }
6912            }
6913        }
6914    
6915        /// <summary>
6916        /// No Metadata Documentation available.
6917        /// </summary>
6918        [XmlIgnoreAttribute()]
6919        [SoapIgnoreAttribute()]
6920        [DataMemberAttribute()]
6921        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Supplier_BackOrderLines"", ""BackOrderLines"")]
6922        public EntityCollection<BackOrderLineMm> BackOrderLines
6923        {
6924            get
6925            {
6926                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<BackOrderLineMm>(""MonsterNamespace.Supplier_BackOrderLines"", ""BackOrderLines"");
6927            }
6928            set
6929            {
6930                if ((value != null))
6931                {
6932                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<BackOrderLineMm>(""MonsterNamespace.Supplier_BackOrderLines"", ""BackOrderLines"", value);
6933                }
6934            }
6935        }
6936    
6937        /// <summary>
6938        /// No Metadata Documentation available.
6939        /// </summary>
6940        [XmlIgnoreAttribute()]
6941        [SoapIgnoreAttribute()]
6942        [DataMemberAttribute()]
6943        [EdmRelationshipNavigationPropertyAttribute(""MonsterNamespace"", ""Supplier_SupplierLogo"", ""Logo"")]
6944        public SupplierLogoMm Logo
6945        {
6946            get
6947            {
6948                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierLogoMm>(""MonsterNamespace.Supplier_SupplierLogo"", ""Logo"").Value;
6949            }
6950            set
6951            {
6952                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierLogoMm>(""MonsterNamespace.Supplier_SupplierLogo"", ""Logo"").Value = value;
6953            }
6954        }
6955        /// <summary>
6956        /// No Metadata Documentation available.
6957        /// </summary>
6958        [BrowsableAttribute(false)]
6959        [DataMemberAttribute()]
6960        public EntityReference<SupplierLogoMm> LogoReference
6961        {
6962            get
6963            {
6964                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SupplierLogoMm>(""MonsterNamespace.Supplier_SupplierLogo"", ""Logo"");
6965            }
6966            set
6967            {
6968                if ((value != null))
6969                {
6970                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SupplierLogoMm>(""MonsterNamespace.Supplier_SupplierLogo"", ""Logo"", value);
6971                }
6972            }
6973        }
6974
6975        #endregion
6976
6977    }
6978    
6979    /// <summary>
6980    /// No Metadata Documentation available.
6981    /// </summary>
6982    [EdmEntityTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""SuspiciousActivityMm"")]
6983    [Serializable()]
6984    [DataContractAttribute(IsReference=true)]
6985    public partial class SuspiciousActivityMm : EntityObject
6986    {
6987        #region Factory Method
6988    
6989        /// <summary>
6990        /// Create a new SuspiciousActivityMm object.
6991        /// </summary>
6992        /// <param name=""suspiciousActivityId"">Initial value of the SuspiciousActivityId property.</param>
6993        /// <param name=""activity"">Initial value of the Activity property.</param>
6994        public static SuspiciousActivityMm CreateSuspiciousActivityMm(global::System.Int32 suspiciousActivityId, global::System.String activity)
6995        {
6996            SuspiciousActivityMm suspiciousActivityMm = new SuspiciousActivityMm();
6997            suspiciousActivityMm.SuspiciousActivityId = suspiciousActivityId;
6998            suspiciousActivityMm.Activity = activity;
6999            return suspiciousActivityMm;
7000        }
7001
7002        #endregion
7003
7004        #region Simple Properties
7005    
7006        /// <summary>
7007        /// No Metadata Documentation available.
7008        /// </summary>
7009        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
7010        [DataMemberAttribute()]
7011        public global::System.Int32 SuspiciousActivityId
7012        {
7013            get
7014            {
7015                return _SuspiciousActivityId;
7016            }
7017            set
7018            {
7019                if (_SuspiciousActivityId != value)
7020                {
7021                    OnSuspiciousActivityIdChanging(value);
7022                    ReportPropertyChanging(""SuspiciousActivityId"");
7023                    _SuspiciousActivityId = StructuralObject.SetValidValue(value, ""SuspiciousActivityId"");
7024                    ReportPropertyChanged(""SuspiciousActivityId"");
7025                    OnSuspiciousActivityIdChanged();
7026                }
7027            }
7028        }
7029        private global::System.Int32 _SuspiciousActivityId;
7030        partial void OnSuspiciousActivityIdChanging(global::System.Int32 value);
7031        partial void OnSuspiciousActivityIdChanged();
7032    
7033        /// <summary>
7034        /// No Metadata Documentation available.
7035        /// </summary>
7036        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
7037        [DataMemberAttribute()]
7038        public global::System.String Activity
7039        {
7040            get
7041            {
7042                return _Activity;
7043            }
7044            set
7045            {
7046                OnActivityChanging(value);
7047                ReportPropertyChanging(""Activity"");
7048                _Activity = StructuralObject.SetValidValue(value, false, ""Activity"");
7049                ReportPropertyChanged(""Activity"");
7050                OnActivityChanged();
7051            }
7052        }
7053        private global::System.String _Activity;
7054        partial void OnActivityChanging(global::System.String value);
7055        partial void OnActivityChanged();
7056
7057        #endregion
7058
7059    }
7060
7061    #endregion
7062
7063    #region ComplexTypes
7064    
7065    /// <summary>
7066    /// No Metadata Documentation available.
7067    /// </summary>
7068    [EdmComplexTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""AuditInfoMm"")]
7069    [DataContractAttribute(IsReference=true)]
7070    [Serializable()]
7071    public partial class AuditInfoMm : ComplexObject
7072    {
7073        #region Factory Method
7074    
7075        /// <summary>
7076        /// Create a new AuditInfoMm object.
7077        /// </summary>
7078        /// <param name=""modifiedDate"">Initial value of the ModifiedDate property.</param>
7079        /// <param name=""modifiedBy"">Initial value of the ModifiedBy property.</param>
7080        /// <param name=""concurrency"">Initial value of the Concurrency property.</param>
7081        public static AuditInfoMm CreateAuditInfoMm(global::System.DateTime modifiedDate, global::System.String modifiedBy, ConcurrencyInfoMm concurrency)
7082        {
7083            AuditInfoMm auditInfoMm = new AuditInfoMm();
7084            auditInfoMm.ModifiedDate = modifiedDate;
7085            auditInfoMm.ModifiedBy = modifiedBy;
7086            auditInfoMm.Concurrency = StructuralObject.VerifyComplexObjectIsNotNull(concurrency, ""Concurrency"");
7087            return auditInfoMm;
7088        }
7089
7090        #endregion
7091
7092        #region Simple Properties
7093    
7094        /// <summary>
7095        /// No Metadata Documentation available.
7096        /// </summary>
7097        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
7098        [DataMemberAttribute()]
7099        public global::System.DateTime ModifiedDate
7100        {
7101            get
7102            {
7103                return _ModifiedDate;
7104            }
7105            set
7106            {
7107                OnModifiedDateChanging(value);
7108                ReportPropertyChanging(""ModifiedDate"");
7109                _ModifiedDate = StructuralObject.SetValidValue(value, ""ModifiedDate"");
7110                ReportPropertyChanged(""ModifiedDate"");
7111                OnModifiedDateChanged();
7112            }
7113        }
7114        private global::System.DateTime _ModifiedDate;
7115        partial void OnModifiedDateChanging(global::System.DateTime value);
7116        partial void OnModifiedDateChanged();
7117    
7118        /// <summary>
7119        /// No Metadata Documentation available.
7120        /// </summary>
7121        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
7122        [DataMemberAttribute()]
7123        public global::System.String ModifiedBy
7124        {
7125            get
7126            {
7127                return _ModifiedBy;
7128            }
7129            set
7130            {
7131                OnModifiedByChanging(value);
7132                ReportPropertyChanging(""ModifiedBy"");
7133                _ModifiedBy = StructuralObject.SetValidValue(value, false, ""ModifiedBy"");
7134                ReportPropertyChanged(""ModifiedBy"");
7135                OnModifiedByChanged();
7136            }
7137        }
7138        private global::System.String _ModifiedBy;
7139        partial void OnModifiedByChanging(global::System.String value);
7140        partial void OnModifiedByChanged();
7141
7142        #endregion
7143
7144        #region Complex Properties
7145    
7146        /// <summary>
7147        /// No Metadata Documentation available.
7148        /// </summary>
7149        [EdmComplexPropertyAttribute()]
7150        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
7151        [XmlElement(IsNullable=true)]
7152        [SoapElement(IsNullable=true)]
7153        [DataMemberAttribute()]
7154        public ConcurrencyInfoMm Concurrency
7155        {
7156            get
7157            {
7158                _Concurrency = GetValidValue(_Concurrency, ""Concurrency"", false, _ConcurrencyInitialized);
7159                _ConcurrencyInitialized = true;
7160                return _Concurrency;
7161            }
7162            set
7163            {
7164                OnConcurrencyChanging(value);
7165                ReportPropertyChanging(""Concurrency"");
7166                _Concurrency = SetValidValue(_Concurrency, value, ""Concurrency"");
7167                _ConcurrencyInitialized = true;
7168                ReportPropertyChanged(""Concurrency"");
7169                OnConcurrencyChanged();
7170            }
7171        }
7172        private ConcurrencyInfoMm _Concurrency;
7173        private bool _ConcurrencyInitialized;
7174        partial void OnConcurrencyChanging(ConcurrencyInfoMm value);
7175        partial void OnConcurrencyChanged();
7176
7177        #endregion
7178
7179    }
7180    
7181    /// <summary>
7182    /// No Metadata Documentation available.
7183    /// </summary>
7184    [EdmComplexTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ConcurrencyInfoMm"")]
7185    [DataContractAttribute(IsReference=true)]
7186    [Serializable()]
7187    public partial class ConcurrencyInfoMm : ComplexObject
7188    {
7189        #region Factory Method
7190    
7191        /// <summary>
7192        /// Create a new ConcurrencyInfoMm object.
7193        /// </summary>
7194        /// <param name=""token"">Initial value of the Token property.</param>
7195        public static ConcurrencyInfoMm CreateConcurrencyInfoMm(global::System.String token)
7196        {
7197            ConcurrencyInfoMm concurrencyInfoMm = new ConcurrencyInfoMm();
7198            concurrencyInfoMm.Token = token;
7199            return concurrencyInfoMm;
7200        }
7201
7202        #endregion
7203
7204        #region Simple Properties
7205    
7206        /// <summary>
7207        /// No Metadata Documentation available.
7208        /// </summary>
7209        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
7210        [DataMemberAttribute()]
7211        public global::System.String Token
7212        {
7213            get
7214            {
7215                return _Token;
7216            }
7217            set
7218            {
7219                OnTokenChanging(value);
7220                ReportPropertyChanging(""Token"");
7221                _Token = StructuralObject.SetValidValue(value, false, ""Token"");
7222                ReportPropertyChanged(""Token"");
7223                OnTokenChanged();
7224            }
7225        }
7226        private global::System.String _Token;
7227        partial void OnTokenChanging(global::System.String value);
7228        partial void OnTokenChanged();
7229    
7230        /// <summary>
7231        /// No Metadata Documentation available.
7232        /// </summary>
7233        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
7234        [DataMemberAttribute()]
7235        public Nullable<global::System.DateTime> QueriedDateTime
7236        {
7237            get
7238            {
7239                return _QueriedDateTime;
7240            }
7241            set
7242            {
7243                OnQueriedDateTimeChanging(value);
7244                ReportPropertyChanging(""QueriedDateTime"");
7245                _QueriedDateTime = StructuralObject.SetValidValue(value, ""QueriedDateTime"");
7246                ReportPropertyChanged(""QueriedDateTime"");
7247                OnQueriedDateTimeChanged();
7248            }
7249        }
7250        private Nullable<global::System.DateTime> _QueriedDateTime;
7251        partial void OnQueriedDateTimeChanging(Nullable<global::System.DateTime> value);
7252        partial void OnQueriedDateTimeChanged();
7253
7254        #endregion
7255
7256    }
7257    
7258    /// <summary>
7259    /// No Metadata Documentation available.
7260    /// </summary>
7261    [EdmComplexTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""ContactDetailsMm"")]
7262    [DataContractAttribute(IsReference=true)]
7263    [Serializable()]
7264    public partial class ContactDetailsMm : ComplexObject
7265    {
7266        #region Factory Method
7267    
7268        /// <summary>
7269        /// Create a new ContactDetailsMm object.
7270        /// </summary>
7271        /// <param name=""email"">Initial value of the Email property.</param>
7272        /// <param name=""homePhone"">Initial value of the HomePhone property.</param>
7273        /// <param name=""workPhone"">Initial value of the WorkPhone property.</param>
7274        /// <param name=""mobilePhone"">Initial value of the MobilePhone property.</param>
7275        public static ContactDetailsMm CreateContactDetailsMm(global::System.String email, PhoneMm homePhone, PhoneMm workPhone, PhoneMm mobilePhone)
7276        {
7277            ContactDetailsMm contactDetailsMm = new ContactDetailsMm();
7278            contactDetailsMm.Email = email;
7279            contactDetailsMm.HomePhone = StructuralObject.VerifyComplexObjectIsNotNull(homePhone, ""HomePhone"");
7280            contactDetailsMm.WorkPhone = StructuralObject.VerifyComplexObjectIsNotNull(workPhone, ""WorkPhone"");
7281            contactDetailsMm.MobilePhone = StructuralObject.VerifyComplexObjectIsNotNull(mobilePhone, ""MobilePhone"");
7282            return contactDetailsMm;
7283        }
7284
7285        #endregion
7286
7287        #region Simple Properties
7288    
7289        /// <summary>
7290        /// No Metadata Documentation available.
7291        /// </summary>
7292        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
7293        [DataMemberAttribute()]
7294        public global::System.String Email
7295        {
7296            get
7297            {
7298                return _Email;
7299            }
7300            set
7301            {
7302                OnEmailChanging(value);
7303                ReportPropertyChanging(""Email"");
7304                _Email = StructuralObject.SetValidValue(value, false, ""Email"");
7305                ReportPropertyChanged(""Email"");
7306                OnEmailChanged();
7307            }
7308        }
7309        private global::System.String _Email;
7310        partial void OnEmailChanging(global::System.String value);
7311        partial void OnEmailChanged();
7312
7313        #endregion
7314
7315        #region Complex Properties
7316    
7317        /// <summary>
7318        /// No Metadata Documentation available.
7319        /// </summary>
7320        [EdmComplexPropertyAttribute()]
7321        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
7322        [XmlElement(IsNullable=true)]
7323        [SoapElement(IsNullable=true)]
7324        [DataMemberAttribute()]
7325        public PhoneMm HomePhone
7326        {
7327            get
7328            {
7329                _HomePhone = GetValidValue(_HomePhone, ""HomePhone"", false, _HomePhoneInitialized);
7330                _HomePhoneInitialized = true;
7331                return _HomePhone;
7332            }
7333            set
7334            {
7335                OnHomePhoneChanging(value);
7336                ReportPropertyChanging(""HomePhone"");
7337                _HomePhone = SetValidValue(_HomePhone, value, ""HomePhone"");
7338                _HomePhoneInitialized = true;
7339                ReportPropertyChanged(""HomePhone"");
7340                OnHomePhoneChanged();
7341            }
7342        }
7343        private PhoneMm _HomePhone;
7344        private bool _HomePhoneInitialized;
7345        partial void OnHomePhoneChanging(PhoneMm value);
7346        partial void OnHomePhoneChanged();
7347    
7348        /// <summary>
7349        /// No Metadata Documentation available.
7350        /// </summary>
7351        [EdmComplexPropertyAttribute()]
7352        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
7353        [XmlElement(IsNullable=true)]
7354        [SoapElement(IsNullable=true)]
7355        [DataMemberAttribute()]
7356        public PhoneMm WorkPhone
7357        {
7358            get
7359            {
7360                _WorkPhone = GetValidValue(_WorkPhone, ""WorkPhone"", false, _WorkPhoneInitialized);
7361                _WorkPhoneInitialized = true;
7362                return _WorkPhone;
7363            }
7364            set
7365            {
7366                OnWorkPhoneChanging(value);
7367                ReportPropertyChanging(""WorkPhone"");
7368                _WorkPhone = SetValidValue(_WorkPhone, value, ""WorkPhone"");
7369                _WorkPhoneInitialized = true;
7370                ReportPropertyChanged(""WorkPhone"");
7371                OnWorkPhoneChanged();
7372            }
7373        }
7374        private PhoneMm _WorkPhone;
7375        private bool _WorkPhoneInitialized;
7376        partial void OnWorkPhoneChanging(PhoneMm value);
7377        partial void OnWorkPhoneChanged();
7378    
7379        /// <summary>
7380        /// No Metadata Documentation available.
7381        /// </summary>
7382        [EdmComplexPropertyAttribute()]
7383        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
7384        [XmlElement(IsNullable=true)]
7385        [SoapElement(IsNullable=true)]
7386        [DataMemberAttribute()]
7387        public PhoneMm MobilePhone
7388        {
7389            get
7390            {
7391                _MobilePhone = GetValidValue(_MobilePhone, ""MobilePhone"", false, _MobilePhoneInitialized);
7392                _MobilePhoneInitialized = true;
7393                return _MobilePhone;
7394            }
7395            set
7396            {
7397                OnMobilePhoneChanging(value);
7398                ReportPropertyChanging(""MobilePhone"");
7399                _MobilePhone = SetValidValue(_MobilePhone, value, ""MobilePhone"");
7400                _MobilePhoneInitialized = true;
7401                ReportPropertyChanged(""MobilePhone"");
7402                OnMobilePhoneChanged();
7403            }
7404        }
7405        private PhoneMm _MobilePhone;
7406        private bool _MobilePhoneInitialized;
7407        partial void OnMobilePhoneChanging(PhoneMm value);
7408        partial void OnMobilePhoneChanged();
7409
7410        #endregion
7411
7412    }
7413    
7414    /// <summary>
7415    /// No Metadata Documentation available.
7416    /// </summary>
7417    [EdmComplexTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""DimensionsMm"")]
7418    [DataContractAttribute(IsReference=true)]
7419    [Serializable()]
7420    public partial class DimensionsMm : ComplexObject
7421    {
7422        #region Factory Method
7423    
7424        /// <summary>
7425        /// Create a new DimensionsMm object.
7426        /// </summary>
7427        /// <param name=""width"">Initial value of the Width property.</param>
7428        /// <param name=""height"">Initial value of the Height property.</param>
7429        /// <param name=""depth"">Initial value of the Depth property.</param>
7430        public static DimensionsMm CreateDimensionsMm(global::System.Decimal width, global::System.Decimal height, global::System.Decimal depth)
7431        {
7432            DimensionsMm dimensionsMm = new DimensionsMm();
7433            dimensionsMm.Width = width;
7434            dimensionsMm.Height = height;
7435            dimensionsMm.Depth = depth;
7436            return dimensionsMm;
7437        }
7438
7439        #endregion
7440
7441        #region Simple Properties
7442    
7443        /// <summary>
7444        /// No Metadata Documentation available.
7445        /// </summary>
7446        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
7447        [DataMemberAttribute()]
7448        public global::System.Decimal Width
7449        {
7450            get
7451            {
7452                return _Width;
7453            }
7454            set
7455            {
7456                OnWidthChanging(value);
7457                ReportPropertyChanging(""Width"");
7458                _Width = StructuralObject.SetValidValue(value, ""Width"");
7459                ReportPropertyChanged(""Width"");
7460                OnWidthChanged();
7461            }
7462        }
7463        private global::System.Decimal _Width;
7464        partial void OnWidthChanging(global::System.Decimal value);
7465        partial void OnWidthChanged();
7466    
7467        /// <summary>
7468        /// No Metadata Documentation available.
7469        /// </summary>
7470        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
7471        [DataMemberAttribute()]
7472        public global::System.Decimal Height
7473        {
7474            get
7475            {
7476                return _Height;
7477            }
7478            set
7479            {
7480                OnHeightChanging(value);
7481                ReportPropertyChanging(""Height"");
7482                _Height = StructuralObject.SetValidValue(value, ""Height"");
7483                ReportPropertyChanged(""Height"");
7484                OnHeightChanged();
7485            }
7486        }
7487        private global::System.Decimal _Height;
7488        partial void OnHeightChanging(global::System.Decimal value);
7489        partial void OnHeightChanged();
7490    
7491        /// <summary>
7492        /// No Metadata Documentation available.
7493        /// </summary>
7494        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
7495        [DataMemberAttribute()]
7496        public global::System.Decimal Depth
7497        {
7498            get
7499            {
7500                return _Depth;
7501            }
7502            set
7503            {
7504                OnDepthChanging(value);
7505                ReportPropertyChanging(""Depth"");
7506                _Depth = StructuralObject.SetValidValue(value, ""Depth"");
7507                ReportPropertyChanged(""Depth"");
7508                OnDepthChanged();
7509            }
7510        }
7511        private global::System.Decimal _Depth;
7512        partial void OnDepthChanging(global::System.Decimal value);
7513        partial void OnDepthChanged();
7514
7515        #endregion
7516
7517    }
7518    
7519    /// <summary>
7520    /// No Metadata Documentation available.
7521    /// </summary>
7522    [EdmComplexTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""PhoneMm"")]
7523    [DataContractAttribute(IsReference=true)]
7524    [Serializable()]
7525    public partial class PhoneMm : ComplexObject
7526    {
7527        #region Factory Method
7528    
7529        /// <summary>
7530        /// Create a new PhoneMm object.
7531        /// </summary>
7532        /// <param name=""phoneNumber"">Initial value of the PhoneNumber property.</param>
7533        /// <param name=""phoneType"">Initial value of the PhoneType property.</param>
7534        public static PhoneMm CreatePhoneMm(global::System.String phoneNumber, PhoneTypeMm phoneType)
7535        {
7536            PhoneMm phoneMm = new PhoneMm();
7537            phoneMm.PhoneNumber = phoneNumber;
7538            phoneMm.PhoneType = phoneType;
7539            return phoneMm;
7540        }
7541
7542        #endregion
7543
7544        #region Simple Properties
7545    
7546        /// <summary>
7547        /// No Metadata Documentation available.
7548        /// </summary>
7549        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
7550        [DataMemberAttribute()]
7551        public global::System.String PhoneNumber
7552        {
7553            get
7554            {
7555                return _PhoneNumber;
7556            }
7557            set
7558            {
7559                OnPhoneNumberChanging(value);
7560                ReportPropertyChanging(""PhoneNumber"");
7561                _PhoneNumber = StructuralObject.SetValidValue(value, false, ""PhoneNumber"");
7562                ReportPropertyChanged(""PhoneNumber"");
7563                OnPhoneNumberChanged();
7564            }
7565        }
7566        private global::System.String _PhoneNumber;
7567        partial void OnPhoneNumberChanging(global::System.String value);
7568        partial void OnPhoneNumberChanged();
7569    
7570        /// <summary>
7571        /// No Metadata Documentation available.
7572        /// </summary>
7573        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
7574        [DataMemberAttribute()]
7575        public global::System.String Extension
7576        {
7577            get
7578            {
7579                return _Extension;
7580            }
7581            set
7582            {
7583                OnExtensionChanging(value);
7584                ReportPropertyChanging(""Extension"");
7585                _Extension = StructuralObject.SetValidValue(value, true, ""Extension"");
7586                ReportPropertyChanged(""Extension"");
7587                OnExtensionChanged();
7588            }
7589        }
7590        private global::System.String _Extension = ""None"";
7591        partial void OnExtensionChanging(global::System.String value);
7592        partial void OnExtensionChanged();
7593    
7594        /// <summary>
7595        /// No Metadata Documentation available.
7596        /// </summary>
7597        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
7598        [DataMemberAttribute()]
7599        public PhoneTypeMm PhoneType
7600        {
7601            get
7602            {
7603                return _PhoneType;
7604            }
7605            set
7606            {
7607                OnPhoneTypeChanging(value);
7608                ReportPropertyChanging(""PhoneType"");
7609                _PhoneType = (PhoneTypeMm)StructuralObject.SetValidValue((int)value, ""PhoneType"");
7610                ReportPropertyChanged(""PhoneType"");
7611                OnPhoneTypeChanged();
7612            }
7613        }
7614        private PhoneTypeMm _PhoneType;
7615        partial void OnPhoneTypeChanging(PhoneTypeMm value);
7616        partial void OnPhoneTypeChanged();
7617
7618        #endregion
7619
7620    }
7621
7622    #endregion
7623
7624    #region Enums
7625    
7626    /// <summary>
7627    /// No Metadata Documentation available.
7628    /// </summary>
7629    [EdmEnumTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""LicenseStateMm"")]
7630    [DataContractAttribute()]
7631    public enum LicenseStateMm : int
7632    {
7633        /// <summary>
7634        /// No Metadata Documentation available.
7635        /// </summary>
7636        [EnumMemberAttribute()]
7637        Active = 1,
7638    
7639        /// <summary>
7640        /// No Metadata Documentation available.
7641        /// </summary>
7642        [EnumMemberAttribute()]
7643        Suspended = 2,
7644    
7645        /// <summary>
7646        /// No Metadata Documentation available.
7647        /// </summary>
7648        [EnumMemberAttribute()]
7649        Revoked = 3
7650    }
7651    
7652    /// <summary>
7653    /// No Metadata Documentation available.
7654    /// </summary>
7655    [EdmEnumTypeAttribute(NamespaceName=""MonsterNamespace"", Name=""PhoneTypeMm"")]
7656    [DataContractAttribute()]
7657    public enum PhoneTypeMm : int
7658    {
7659        /// <summary>
7660        /// No Metadata Documentation available.
7661        /// </summary>
7662        [EnumMemberAttribute()]
7663        Cell = 1,
7664    
7665        /// <summary>
7666        /// No Metadata Documentation available.
7667        /// </summary>
7668        [EnumMemberAttribute()]
7669        Land = 2,
7670    
7671        /// <summary>
7672        /// No Metadata Documentation available.
7673        /// </summary>
7674        [EnumMemberAttribute()]
7675        Satellite = 3
7676    }
7677
7678    #endregion
7679
7680}";
7681    }
7682}