Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WebPortal.ChucVu app = new ChucVu();
            WebPortal.Model.ChucVu cv = new Model.ChucVu();
            cv.TenCV = "HieuTruong";
            cv.MoTa = "Sap nghi huu";

                Response.Write(app.Add(cv));
        }
 /// <summary>
 /// Create a new ChucVu object.
 /// </summary>
 /// <param name="iDCV">Initial value of the IDCV property.</param>
 public static ChucVu CreateChucVu(global::System.Int32 iDCV)
 {
     ChucVu chucVu = new ChucVu();
     chucVu.IDCV = iDCV;
     return chucVu;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the ChucVus EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToChucVus(ChucVu chucVu)
 {
     base.AddObject("ChucVus", chucVu);
 }