コード例 #1
0
        /// <summary>
        /// Create a new StateRegion object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="fullName">Initial value of the FullName property.</param>
        /// <param name="abbreviation">Initial value of the Abbreviation property.</param>
        /// <param name="regionType">Initial value of the RegionType property.</param>
        public static StateRegion CreateStateRegion(global::System.Int64 id, global::System.String fullName, global::System.String abbreviation, global::System.Int16 regionType)
        {
            StateRegion stateRegion = new StateRegion();

            stateRegion.ID           = id;
            stateRegion.FullName     = fullName;
            stateRegion.Abbreviation = abbreviation;
            stateRegion.RegionType   = regionType;
            return(stateRegion);
        }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the StateRegions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStateRegions(StateRegion stateRegion)
 {
     base.AddObject("StateRegions", stateRegion);
 }