示例#1
0
        private static MovieLanguageDO Save(MOV_M_Language input, int userID)
        {
            MovieLanguageDO inputDO = new MovieLanguageDO( );

            ObjectMapper.MapObjects(input, inputDO, AuditInfo.Fields);
            return(Save(inputDO, userID));
        }
示例#2
0
        public static MovieLanguageDO Save(MovieLanguageDO inputDO, int userID)
        {
            Repository <MOV_M_Language> rep = new Repository <MOV_M_Language> (MArchiveDataContextProvider.Instance);

            MOV_M_Language objectToAdd = null;

            objectToAdd = new MOV_M_Language( );
            ObjectMapper.MapObjects(inputDO, objectToAdd, AuditInfo.Fields);
            rep.InsertOnSubmit(objectToAdd);

            rep.DCP.CommitChanges(userID);

            InvalidateCache(CacheAreaKey);

            ObjectMapper.MapObjects(objectToAdd, inputDO);
            return(inputDO);
        }