Example #1
0
        public int AddRegisterPrd(ref CRegisterPrd aPrd)
        {
            TRegisterPrd tmpPrd = new TRegisterPrd();

            tmpPrd.uniqueID       = aPrd.theUniqueID;
            tmpPrd.productName    = aPrd.theProductName;
            tmpPrd.userUniqueID   = aPrd.theUserUniqueID;
            tmpPrd.amount         = aPrd.theAmount;
            tmpPrd.optionUniqueID = aPrd.theOptionUniqueID;
            tmpPrd.explain        = aPrd.theExplain;
            tmpPrd.beforeCharge   = aPrd.theBeforeCharge;
            tmpPrd.afterCharge    = aPrd.theAfterCharge;
            tmpPrd.startDate      = aPrd.theStartDate;
            tmpPrd.endDate        = aPrd.theEndDate;
            tmpPrd.hddName        = aPrd.theHDDName;
            tmpPrd.fileName       = aPrd.theFileName;

            theRegisterPrdContext.TRegisterPrd.InsertOnSubmit(tmpPrd);
            theRegisterPrdContext.SubmitChanges();

            return(1);
        }
Example #2
0
 partial void DeleteTRegisterPrd(TRegisterPrd instance);
Example #3
0
 partial void UpdateTRegisterPrd(TRegisterPrd instance);
Example #4
0
 partial void InsertTRegisterPrd(TRegisterPrd instance);