Exemplo n.º 1
0
        public Baseview getBaseViewByIdForExport(string baseviewid)
        {
            Baseview b           = new Baseview();
            DataSet  dtBVManager = SynapseHelpers.GetBaseviewManager(baseviewid);

            b.BaseviewManager = SynapseHelpers.SerializeDataSet(dtBVManager, SynapseHelpers.DataSetSerializerType.Json);
            b.Name            = dtBVManager.Tables[0].Rows[0]["baseviewname"].ToString();
            b.Id        = dtBVManager.Tables[0].Rows[0]["baseview_id"].ToString();
            b.Namespace = SynapseHelpers.SerializeDataSet(SynapseHelpers.GetBaseviewNamespace(baseviewid), SynapseHelpers.DataSetSerializerType.Json);

            return(b);
        }
Exemplo n.º 2
0
        internal DataSet GetCurrentSchema()
        {
            var       allBaseviewIds = Baseview.Select(x => x.Id.Trim()).ToList <string>();
            string    baseviewIDs    = string.Join(",", allBaseviewIds);
            DataSet   ds             = new DataSet();
            DataTable dt             = SynapseHelpers.GetBaseviewManager(baseviewIDs).Tables[0];

            if (dt != null)
            {
                ds.Tables.Add(dt.Copy());
            }

            dt = SynapseHelpers.GetBaseviewNamespace(baseviewIDs).Tables[0];
            if (dt != null)
            {
                ds.Tables.Add(dt.Copy());
            }
            return(ds);
        }