Exemplo n.º 1
0
            protected override void RetrieveData()
            {
                DataAccess.ConfigObjects.tbl_config_detail_audit tblAudit = new DataAccess.ConfigObjects.tbl_config_detail_audit(ref settings);
                DataTable dtForList = tblAudit.RetrieveDTForList();

                DEList.Data = GetDEEntities(DEList.DataColumns, DEList.VariableKeyColumns, dtForList);
            }
Exemplo n.º 2
0
        /// <summary>
        /// XML Comment
        /// </summary>
        /// <param name="objtalentSqlAccessDetail"></param>
        /// <param name="settings"></param>
        /// <remarks></remarks>
        public static void SerializeTransaction(TalentDataAccess objtalentSqlAccessDetail, DESettings settings)
        {
            DataAccess.ConfigObjects.tbl_config_detail_audit objAudit = new DataAccess.ConfigObjects.tbl_config_detail_audit(ref settings);
            MemoryStream    ms = new MemoryStream();
            BinaryFormatter bf = new BinaryFormatter();

            // serialize the object
            bf.Serialize(ms, objtalentSqlAccessDetail);
            if (settings.GroupID == "")
            {
                settings.GroupID = GetGroupID(settings).ToString();
            }
            // add it to DB
            objAudit.Insert(ms, settings.GroupID, settings.Module_Name, settings.AgentName, objtalentSqlAccessDetail.TableName, objtalentSqlAccessDetail.Action, objtalentSqlAccessDetail.DataSource, objtalentSqlAccessDetail.Catalog, settings.BusinessUnit);
        }