//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ using System; using System.Data.Objects; using System.Data.Objects.DataClasses; using System.Data.EntityClient; using System.ComponentModel; using System.Xml.Serialization; using System.Runtime.Serialization; [assembly: EdmSchemaAttribute()] #region EDM Relationship Metadata [assembly: EdmRelationshipAttribute("efclonesampleModel", "FK_EmpSalDetail_EmpBaseSal", "EmpBaseSal", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CloningSample.Models.EmpBaseSal), "EmpSalDetail", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CloningSample.Models.EmpSalDetail), true)] [assembly: EdmRelationshipAttribute("efclonesampleModel", "FK_EmpAddress_Employee", "Employee", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CloningSample.Models.Employee), "EmpAddress", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CloningSample.Models.EmpAddress), true)] [assembly: EdmRelationshipAttribute("efclonesampleModel", "FK_EmpBaseSal_Employee", "Employee", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(CloningSample.Models.Employee), "EmpBaseSal", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(CloningSample.Models.EmpBaseSal), true)] #endregion namespace CloningSample.Models { #region Contexts /// <summary> /// No Metadata Documentation available. /// </summary> public partial class efclonesampleEntities : ObjectContext { #region Constructors /// <summary> /// Initializes a new efclonesampleEntities object using the connection string found in the 'efclonesampleEntities' section of the application configuration file. /// </summary> public efclonesampleEntities() : base("name=efclonesampleEntities", "efclonesampleEntities") { this.ContextOptions.LazyLoadingEnabled = true; OnContextCreated(); } /// <summary> /// Initialize a new efclonesampleEntities object. /// </summary> public efclonesampleEntities(string connectionString) : base(connectionString, "efclonesampleEntities") { this.ContextOptions.LazyLoadingEnabled = true; OnContextCreated(); } /// <summary> /// Initialize a new efclonesampleEntities object. /// </summary> public efclonesampleEntities(EntityConnection connection) : base(connection, "efclonesampleEntities") { this.ContextOptions.LazyLoadingEnabled = true; OnContextCreated(); } #endregion #region Partial Methods partial void OnContextCreated(); #endregion #region ObjectSet Properties /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<EmpAddress> EmpAddresses { get { if ((_EmpAddresses == null)) { _EmpAddresses = base.CreateObjectSet<EmpAddress>("EmpAddresses"); } return _EmpAddresses; } } private ObjectSet<EmpAddress> _EmpAddresses; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<EmpBaseSal> EmpBaseSals { get { if ((_EmpBaseSals == null)) { _EmpBaseSals = base.CreateObjectSet<EmpBaseSal>("EmpBaseSals"); } return _EmpBaseSals; } } private ObjectSet<EmpBaseSal> _EmpBaseSals; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<Employee> Employees { get { if ((_Employees == null)) { _Employees = base.CreateObjectSet<Employee>("Employees"); } return _Employees; } } private ObjectSet<Employee> _Employees; /// <summary> /// No Metadata Documentation available. /// </summary> public ObjectSet<EmpSalDetail> EmpSalDetails { get { if ((_EmpSalDetails == null)) { _EmpSalDetails = base.CreateObjectSet<EmpSalDetail>("EmpSalDetails"); } return _EmpSalDetails; } } private ObjectSet<EmpSalDetail> _EmpSalDetails; #endregion #region AddTo Methods /// <summary> /// Deprecated Method for adding a new object to the EmpAddresses EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmpAddresses(EmpAddress empAddress) { base.AddObject("EmpAddresses", empAddress); } /// <summary> /// Deprecated Method for adding a new object to the EmpBaseSals EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmpBaseSals(EmpBaseSal empBaseSal) { base.AddObject("EmpBaseSals", empBaseSal); } /// <summary> /// Deprecated Method for adding a new object to the Employees EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmployees(Employee employee) { base.AddObject("Employees", employee); } /// <summary> /// Deprecated Method for adding a new object to the EmpSalDetails EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmpSalDetails(EmpSalDetail empSalDetail) { base.AddObject("EmpSalDetails", empSalDetail); } #endregion } #endregion #region Entities /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="efclonesampleModel", Name="EmpAddress")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class EmpAddress : EntityObject { #region Factory Method /// <summary> /// Create a new EmpAddress object. /// </summary> /// <param name="aID">Initial value of the AID property.</param> public static EmpAddress CreateEmpAddress(global::System.Int32 aID) { EmpAddress empAddress = new EmpAddress(); empAddress.AID = aID; return empAddress; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 AID { get { return _AID; } set { if (_AID != value) { OnAIDChanging(value); ReportPropertyChanging("AID"); _AID = StructuralObject.SetValidValue(value); ReportPropertyChanged("AID"); OnAIDChanged(); } } } private global::System.Int32 _AID; partial void OnAIDChanging(global::System.Int32 value); partial void OnAIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String AddressLN1 { get { return _AddressLN1; } set { OnAddressLN1Changing(value); ReportPropertyChanging("AddressLN1"); _AddressLN1 = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("AddressLN1"); OnAddressLN1Changed(); } } private global::System.String _AddressLN1; partial void OnAddressLN1Changing(global::System.String value); partial void OnAddressLN1Changed(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String AddressLN2 { get { return _AddressLN2; } set { OnAddressLN2Changing(value); ReportPropertyChanging("AddressLN2"); _AddressLN2 = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("AddressLN2"); OnAddressLN2Changed(); } } private global::System.String _AddressLN2; partial void OnAddressLN2Changing(global::System.String value); partial void OnAddressLN2Changed(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String City { get { return _City; } set { OnCityChanging(value); ReportPropertyChanging("City"); _City = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("City"); OnCityChanged(); } } private global::System.String _City; partial void OnCityChanging(global::System.String value); partial void OnCityChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String State { get { return _State; } set { OnStateChanging(value); ReportPropertyChanging("State"); _State = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("State"); OnStateChanged(); } } private global::System.String _State; partial void OnStateChanging(global::System.String value); partial void OnStateChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Boolean> IsPrimary { get { return _IsPrimary; } set { OnIsPrimaryChanging(value); ReportPropertyChanging("IsPrimary"); _IsPrimary = StructuralObject.SetValidValue(value); ReportPropertyChanged("IsPrimary"); OnIsPrimaryChanged(); } } private Nullable<global::System.Boolean> _IsPrimary; partial void OnIsPrimaryChanging(Nullable<global::System.Boolean> value); partial void OnIsPrimaryChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> EMPID { get { return _EMPID; } set { OnEMPIDChanging(value); ReportPropertyChanging("EMPID"); _EMPID = StructuralObject.SetValidValue(value); ReportPropertyChanged("EMPID"); OnEMPIDChanged(); } } private Nullable<global::System.Int32> _EMPID; partial void OnEMPIDChanging(Nullable<global::System.Int32> value); partial void OnEMPIDChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("efclonesampleModel", "FK_EmpAddress_Employee", "Employee")] public Employee Employee { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("efclonesampleModel.FK_EmpAddress_Employee", "Employee").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("efclonesampleModel.FK_EmpAddress_Employee", "Employee").Value = value; } } /// <summary> /// No Metadata Documentation available. /// </summary> [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference<Employee> EmployeeReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("efclonesampleModel.FK_EmpAddress_Employee", "Employee"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Employee>("efclonesampleModel.FK_EmpAddress_Employee", "Employee", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="efclonesampleModel", Name="EmpBaseSal")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class EmpBaseSal : EntityObject { #region Factory Method /// <summary> /// Create a new EmpBaseSal object. /// </summary> /// <param name="salID">Initial value of the SalID property.</param> public static EmpBaseSal CreateEmpBaseSal(global::System.Int32 salID) { EmpBaseSal empBaseSal = new EmpBaseSal(); empBaseSal.SalID = salID; return empBaseSal; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 SalID { get { return _SalID; } set { if (_SalID != value) { OnSalIDChanging(value); ReportPropertyChanging("SalID"); _SalID = StructuralObject.SetValidValue(value); ReportPropertyChanged("SalID"); OnSalIDChanged(); } } } private global::System.Int32 _SalID; partial void OnSalIDChanging(global::System.Int32 value); partial void OnSalIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> EMpid { get { return _EMpid; } set { OnEMpidChanging(value); ReportPropertyChanging("EMpid"); _EMpid = StructuralObject.SetValidValue(value); ReportPropertyChanged("EMpid"); OnEMpidChanged(); } } private Nullable<global::System.Int32> _EMpid; partial void OnEMpidChanging(Nullable<global::System.Int32> value); partial void OnEMpidChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Double> TotalCTC { get { return _TotalCTC; } set { OnTotalCTCChanging(value); ReportPropertyChanging("TotalCTC"); _TotalCTC = StructuralObject.SetValidValue(value); ReportPropertyChanged("TotalCTC"); OnTotalCTCChanged(); } } private Nullable<global::System.Double> _TotalCTC; partial void OnTotalCTCChanging(Nullable<global::System.Double> value); partial void OnTotalCTCChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Double> FLexiBenifit { get { return _FLexiBenifit; } set { OnFLexiBenifitChanging(value); ReportPropertyChanging("FLexiBenifit"); _FLexiBenifit = StructuralObject.SetValidValue(value); ReportPropertyChanged("FLexiBenifit"); OnFLexiBenifitChanged(); } } private Nullable<global::System.Double> _FLexiBenifit; partial void OnFLexiBenifitChanging(Nullable<global::System.Double> value); partial void OnFLexiBenifitChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> FromYear { get { return _FromYear; } set { OnFromYearChanging(value); ReportPropertyChanging("FromYear"); _FromYear = StructuralObject.SetValidValue(value); ReportPropertyChanged("FromYear"); OnFromYearChanged(); } } private Nullable<global::System.DateTime> _FromYear; partial void OnFromYearChanging(Nullable<global::System.DateTime> value); partial void OnFromYearChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.DateTime> ToYear { get { return _ToYear; } set { OnToYearChanging(value); ReportPropertyChanging("ToYear"); _ToYear = StructuralObject.SetValidValue(value); ReportPropertyChanged("ToYear"); OnToYearChanged(); } } private Nullable<global::System.DateTime> _ToYear; partial void OnToYearChanging(Nullable<global::System.DateTime> value); partial void OnToYearChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("efclonesampleModel", "FK_EmpSalDetail_EmpBaseSal", "EmpSalDetail")] public EntityCollection<EmpSalDetail> EmpSalDetails { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<EmpSalDetail>("efclonesampleModel.FK_EmpSalDetail_EmpBaseSal", "EmpSalDetail"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<EmpSalDetail>("efclonesampleModel.FK_EmpSalDetail_EmpBaseSal", "EmpSalDetail", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("efclonesampleModel", "FK_EmpBaseSal_Employee", "Employee")] public Employee Employee { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("efclonesampleModel.FK_EmpBaseSal_Employee", "Employee").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("efclonesampleModel.FK_EmpBaseSal_Employee", "Employee").Value = value; } } /// <summary> /// No Metadata Documentation available. /// </summary> [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference<Employee> EmployeeReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Employee>("efclonesampleModel.FK_EmpBaseSal_Employee", "Employee"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Employee>("efclonesampleModel.FK_EmpBaseSal_Employee", "Employee", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="efclonesampleModel", Name="Employee")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class Employee : EntityObject { #region Factory Method /// <summary> /// Create a new Employee object. /// </summary> /// <param name="eMPID">Initial value of the EMPID property.</param> public static Employee CreateEmployee(global::System.Int32 eMPID) { Employee employee = new Employee(); employee.EMPID = eMPID; return employee; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 EMPID { get { return _EMPID; } set { if (_EMPID != value) { OnEMPIDChanging(value); ReportPropertyChanging("EMPID"); _EMPID = StructuralObject.SetValidValue(value); ReportPropertyChanged("EMPID"); OnEMPIDChanged(); } } } private global::System.Int32 _EMPID; partial void OnEMPIDChanging(global::System.Int32 value); partial void OnEMPIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String FirstName { get { return _FirstName; } set { OnFirstNameChanging(value); ReportPropertyChanging("FirstName"); _FirstName = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("FirstName"); OnFirstNameChanged(); } } private global::System.String _FirstName; partial void OnFirstNameChanging(global::System.String value); partial void OnFirstNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String LastName { get { return _LastName; } set { OnLastNameChanging(value); ReportPropertyChanging("LastName"); _LastName = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("LastName"); OnLastNameChanged(); } } private global::System.String _LastName; partial void OnLastNameChanging(global::System.String value); partial void OnLastNameChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String MailId { get { return _MailId; } set { OnMailIdChanging(value); ReportPropertyChanging("MailId"); _MailId = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("MailId"); OnMailIdChanged(); } } private global::System.String _MailId; partial void OnMailIdChanging(global::System.String value); partial void OnMailIdChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Double> Age { get { return _Age; } set { OnAgeChanging(value); ReportPropertyChanging("Age"); _Age = StructuralObject.SetValidValue(value); ReportPropertyChanged("Age"); OnAgeChanged(); } } private Nullable<global::System.Double> _Age; partial void OnAgeChanging(Nullable<global::System.Double> value); partial void OnAgeChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public global::System.String Sex { get { return _Sex; } set { OnSexChanging(value); ReportPropertyChanging("Sex"); _Sex = StructuralObject.SetValidValue(value, true); ReportPropertyChanged("Sex"); OnSexChanged(); } } private global::System.String _Sex; partial void OnSexChanging(global::System.String value); partial void OnSexChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("efclonesampleModel", "FK_EmpAddress_Employee", "EmpAddress")] public EntityCollection<EmpAddress> EmpAddresses { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<EmpAddress>("efclonesampleModel.FK_EmpAddress_Employee", "EmpAddress"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<EmpAddress>("efclonesampleModel.FK_EmpAddress_Employee", "EmpAddress", value); } } } /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("efclonesampleModel", "FK_EmpBaseSal_Employee", "EmpBaseSal")] public EntityCollection<EmpBaseSal> EmpBaseSals { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<EmpBaseSal>("efclonesampleModel.FK_EmpBaseSal_Employee", "EmpBaseSal"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<EmpBaseSal>("efclonesampleModel.FK_EmpBaseSal_Employee", "EmpBaseSal", value); } } } #endregion } /// <summary> /// No Metadata Documentation available. /// </summary> [EdmEntityTypeAttribute(NamespaceName="efclonesampleModel", Name="EmpSalDetail")] [Serializable()] [DataContractAttribute(IsReference=true)] public partial class EmpSalDetail : EntityObject { #region Factory Method /// <summary> /// Create a new EmpSalDetail object. /// </summary> /// <param name="dSalID">Initial value of the DSalID property.</param> public static EmpSalDetail CreateEmpSalDetail(global::System.Int32 dSalID) { EmpSalDetail empSalDetail = new EmpSalDetail(); empSalDetail.DSalID = dSalID; return empSalDetail; } #endregion #region Primitive Properties /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)] [DataMemberAttribute()] public global::System.Int32 DSalID { get { return _DSalID; } set { if (_DSalID != value) { OnDSalIDChanging(value); ReportPropertyChanging("DSalID"); _DSalID = StructuralObject.SetValidValue(value); ReportPropertyChanged("DSalID"); OnDSalIDChanged(); } } } private global::System.Int32 _DSalID; partial void OnDSalIDChanging(global::System.Int32 value); partial void OnDSalIDChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Int32> SalId { get { return _SalId; } set { OnSalIdChanging(value); ReportPropertyChanging("SalId"); _SalId = StructuralObject.SetValidValue(value); ReportPropertyChanged("SalId"); OnSalIdChanged(); } } private Nullable<global::System.Int32> _SalId; partial void OnSalIdChanging(Nullable<global::System.Int32> value); partial void OnSalIdChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Double> Basic { get { return _Basic; } set { OnBasicChanging(value); ReportPropertyChanging("Basic"); _Basic = StructuralObject.SetValidValue(value); ReportPropertyChanged("Basic"); OnBasicChanged(); } } private Nullable<global::System.Double> _Basic; partial void OnBasicChanging(Nullable<global::System.Double> value); partial void OnBasicChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Double> HRA { get { return _HRA; } set { OnHRAChanging(value); ReportPropertyChanging("HRA"); _HRA = StructuralObject.SetValidValue(value); ReportPropertyChanged("HRA"); OnHRAChanged(); } } private Nullable<global::System.Double> _HRA; partial void OnHRAChanging(Nullable<global::System.Double> value); partial void OnHRAChanged(); /// <summary> /// No Metadata Documentation available. /// </summary> [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)] [DataMemberAttribute()] public Nullable<global::System.Double> Bonus { get { return _Bonus; } set { OnBonusChanging(value); ReportPropertyChanging("Bonus"); _Bonus = StructuralObject.SetValidValue(value); ReportPropertyChanged("Bonus"); OnBonusChanged(); } } private Nullable<global::System.Double> _Bonus; partial void OnBonusChanging(Nullable<global::System.Double> value); partial void OnBonusChanged(); #endregion #region Navigation Properties /// <summary> /// No Metadata Documentation available. /// </summary> [XmlIgnoreAttribute()] [SoapIgnoreAttribute()] [DataMemberAttribute()] [EdmRelationshipNavigationPropertyAttribute("efclonesampleModel", "FK_EmpSalDetail_EmpBaseSal", "EmpBaseSal")] public EmpBaseSal EmpBaseSal { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EmpBaseSal>("efclonesampleModel.FK_EmpSalDetail_EmpBaseSal", "EmpBaseSal").Value; } set { ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EmpBaseSal>("efclonesampleModel.FK_EmpSalDetail_EmpBaseSal", "EmpBaseSal").Value = value; } } /// <summary> /// No Metadata Documentation available. /// </summary> [BrowsableAttribute(false)] [DataMemberAttribute()] public EntityReference<EmpBaseSal> EmpBaseSalReference { get { return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EmpBaseSal>("efclonesampleModel.FK_EmpSalDetail_EmpBaseSal", "EmpBaseSal"); } set { if ((value != null)) { ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EmpBaseSal>("efclonesampleModel.FK_EmpSalDetail_EmpBaseSal", "EmpBaseSal", value); } } } #endregion } #endregion }
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
Math Primers for Programmers