示例#1
0
        public static void Test(EntityObject obj)
        {
            T_FB_TRAVELEXPAPPLYMASTER bb = obj as T_FB_TRAVELEXPAPPLYMASTER;
            BaseBll<T_FB_TRAVELEXPAPPLYMASTER> b = new BaseBll<T_FB_TRAVELEXPAPPLYMASTER>();
            T_FB_TRAVELEXPAPPLYMASTER t = b.GetTable().First();
            T_FB_TRAVELEXPAPPLYDETAIL t1 = new T_FB_TRAVELEXPAPPLYDETAIL();

            T_FB_TRAVELEXPAPPLYDETAIL t2 = bb.T_FB_TRAVELEXPAPPLYDETAIL.ToList()[0];
            t.T_FB_TRAVELEXPAPPLYDETAIL.Add(t1);
            t.T_FB_TRAVELEXPAPPLYDETAIL.Add(t2);
            b.dal.GetDataContext().SaveChanges();
        }
示例#2
0
 /// <summary>
 /// 创建新的 T_FB_TRAVELEXPAPPLYDETAIL 对象。
 /// </summary>
 /// <param name="tRAVELEXPAPPLYDETAILID">TRAVELEXPAPPLYDETAILID 属性的初始值。</param>
 /// <param name="mONTH">MONTH 属性的初始值。</param>
 /// <param name="dAY">DAY 属性的初始值。</param>
 /// <param name="tOTALCHARGE">TOTALCHARGE 属性的初始值。</param>
 /// <param name="cREATEUSERID">CREATEUSERID 属性的初始值。</param>
 /// <param name="cREATEDATE">CREATEDATE 属性的初始值。</param>
 /// <param name="uPDATEUSERID">UPDATEUSERID 属性的初始值。</param>
 /// <param name="uPDATEDATE">UPDATEDATE 属性的初始值。</param>
 public static T_FB_TRAVELEXPAPPLYDETAIL CreateT_FB_TRAVELEXPAPPLYDETAIL(global::System.String tRAVELEXPAPPLYDETAILID, global::System.Decimal mONTH, global::System.Decimal dAY, global::System.Decimal tOTALCHARGE, global::System.String cREATEUSERID, global::System.DateTime cREATEDATE, global::System.String uPDATEUSERID, global::System.DateTime uPDATEDATE)
 {
     T_FB_TRAVELEXPAPPLYDETAIL t_FB_TRAVELEXPAPPLYDETAIL = new T_FB_TRAVELEXPAPPLYDETAIL();
     t_FB_TRAVELEXPAPPLYDETAIL.TRAVELEXPAPPLYDETAILID = tRAVELEXPAPPLYDETAILID;
     t_FB_TRAVELEXPAPPLYDETAIL.MONTH = mONTH;
     t_FB_TRAVELEXPAPPLYDETAIL.DAY = dAY;
     t_FB_TRAVELEXPAPPLYDETAIL.TOTALCHARGE = tOTALCHARGE;
     t_FB_TRAVELEXPAPPLYDETAIL.CREATEUSERID = cREATEUSERID;
     t_FB_TRAVELEXPAPPLYDETAIL.CREATEDATE = cREATEDATE;
     t_FB_TRAVELEXPAPPLYDETAIL.UPDATEUSERID = uPDATEUSERID;
     t_FB_TRAVELEXPAPPLYDETAIL.UPDATEDATE = uPDATEDATE;
     return t_FB_TRAVELEXPAPPLYDETAIL;
 }
示例#3
0
 /// <summary>
 /// 用于向 T_FB_TRAVELEXPAPPLYDETAIL EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToT_FB_TRAVELEXPAPPLYDETAIL(T_FB_TRAVELEXPAPPLYDETAIL t_FB_TRAVELEXPAPPLYDETAIL)
 {
     base.AddObject("T_FB_TRAVELEXPAPPLYDETAIL", t_FB_TRAVELEXPAPPLYDETAIL);
 }