コード例 #1
0
        /// <summary>
        /// 创建新的 t_Student 对象。
        /// </summary>
        /// <param name="sno">sno 属性的初始值。</param>
        /// <param name="sGender">SGender 属性的初始值。</param>
        /// <param name="sBirth">SBirth 属性的初始值。</param>
        public static t_Student Createt_Student(global::System.String sno, global::System.String sGender, global::System.DateTime sBirth)
        {
            t_Student t_Student = new t_Student();

            t_Student.sno     = sno;
            t_Student.SGender = sGender;
            t_Student.SBirth  = sBirth;
            return(t_Student);
        }
コード例 #2
0
 /// <summary>
 /// 用于向 t_Student EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddTot_Student(t_Student t_Student)
 {
     base.AddObject("t_Student", t_Student);
 }