MvcJQueryModel.Designer.cs


Dosyayı İndir
//------------------------------------------------------------------------------
// <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()]

namespace AspMvcJQuery
{
    #region Contexts
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    public partial class MvcJQueryDB : ObjectContext
    {
        #region Constructors
    
        /// <summary>
        /// Initializes a new MvcJQueryDB object using the connection string found in the 'MvcJQueryDB' section of the application configuration file.
        /// </summary>
        public MvcJQueryDB() : base("name=MvcJQueryDB", "MvcJQueryDB")
        {
            this.ContextOptions.LazyLoadingEnabled = true;
            OnContextCreated();
        }
    
        /// <summary>
        /// Initialize a new MvcJQueryDB object.
        /// </summary>
        public MvcJQueryDB(string connectionString) : base(connectionString, "MvcJQueryDB")
        {
            this.ContextOptions.LazyLoadingEnabled = true;
            OnContextCreated();
        }
    
        /// <summary>
        /// Initialize a new MvcJQueryDB object.
        /// </summary>
        public MvcJQueryDB(EntityConnection connection) : base(connection, "MvcJQueryDB")
        {
            this.ContextOptions.LazyLoadingEnabled = true;
            OnContextCreated();
        }
    
        #endregion
    
        #region Partial Methods
    
        partial void OnContextCreated();
    
        #endregion
    
        #region ObjectSet Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Sample> Samples
        {
            get
            {
                if ((_Samples == null))
                {
                    _Samples = base.CreateObjectSet<Sample>("Samples");
                }
                return _Samples;
            }
        }
        private ObjectSet<Sample> _Samples;

        #endregion
        #region AddTo Methods
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Samples EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToSamples(Sample sample)
        {
            base.AddObject("Samples", sample);
        }

        #endregion
    }
    

    #endregion
    
    #region Entities
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="MvcJQueryModel", Name="Sample")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Sample : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Sample object.
        /// </summary>
        /// <param name="sampleId">Initial value of the SampleId property.</param>
        public static Sample CreateSample(global::System.Int64 sampleId)
        {
            Sample sample = new Sample();
            sample.SampleId = sampleId;
            return sample;
        }

        #endregion
        #region Primitive Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int64 SampleId
        {
            get
            {
                return _SampleId;
            }
            set
            {
                if (_SampleId != value)
                {
                    OnSampleIdChanging(value);
                    ReportPropertyChanging("SampleId");
                    _SampleId = StructuralObject.SetValidValue(value);
                    ReportPropertyChanged("SampleId");
                    OnSampleIdChanged();
                }
            }
        }
        private global::System.Int64 _SampleId;
        partial void OnSampleIdChanging(global::System.Int64 value);
        partial void OnSampleIdChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SampleName
        {
            get
            {
                return _SampleName;
            }
            set
            {
                OnSampleNameChanging(value);
                ReportPropertyChanging("SampleName");
                _SampleName = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("SampleName");
                OnSampleNameChanged();
            }
        }
        private global::System.String _SampleName;
        partial void OnSampleNameChanging(global::System.String value);
        partial void OnSampleNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> SampleValue
        {
            get
            {
                return _SampleValue;
            }
            set
            {
                OnSampleValueChanging(value);
                ReportPropertyChanging("SampleValue");
                _SampleValue = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("SampleValue");
                OnSampleValueChanged();
            }
        }
        private Nullable<global::System.Double> _SampleValue;
        partial void OnSampleValueChanging(Nullable<global::System.Double> value);
        partial void OnSampleValueChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> SampleDate
        {
            get
            {
                return _SampleDate;
            }
            set
            {
                OnSampleDateChanging(value);
                ReportPropertyChanging("SampleDate");
                _SampleDate = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("SampleDate");
                OnSampleDateChanged();
            }
        }
        private Nullable<global::System.DateTime> _SampleDate;
        partial void OnSampleDateChanging(Nullable<global::System.DateTime> value);
        partial void OnSampleDateChanged();

        #endregion
    
    }

    #endregion
    
}

				
Dosyayı İndir

Bu Sayfayı Paylaş:




Bu Sayfayı Paylaş:

İletişim Bilgileri

Takip Et

Her Hakkı Saklıdır. Bu sitede yayınlanan tüm bilgi ve fikirlerin kullanımından fibiler.com sorumlu değildir. Bu sitede üretilmiş , derlenmiş içerikleri, fibiler.com'u kaynak göstermek koşuluyla kendi sitenizde kullanılabilirsiniz. Ancak telif hakkı olan içeriklerin hakları sahiplerine aittir