示例#1
0
 internal FS.Data.Common.Data GetData(FS.Data.Common.ConnKeys oConnKeys)
 {
     FS.Data.Common.Data objData = this.GetData();
     if (objData != null)
     {
         objData.ConnectionString = this.GetConnectionString(oConnKeys, objData);
     }
     return(objData);
 }
示例#2
0
 internal FS.Data.Common.Data GetData()
 {
     System.Reflection.Assembly objAssembly = null;
     FS.Data.Common.Data        objData     = null;
     try
     {
         if (System.IO.File.Exists(this.FileName))
         {
             objAssembly = System.Reflection.Assembly.LoadFrom(this.FileName);
             objData     = (FS.Data.Common.Data)objAssembly.CreateInstance(this.TypeName);
         }
     }
     catch { }
     finally
     {
         objAssembly = null;
     }
     return(objData);
 }
示例#3
0
 public static FS.Data.Common.ConnKeys GetConnKeys(string sTypeName)
 {
     FS.Data.Common.ConnKeys oConnKeys = null;
     FS.Data.Common.Data     oData     = null;
     try
     {
         oData     = GetDataByTypeName(sTypeName);
         oConnKeys = oData.ConnectionStringParams;
     }
     catch { }
     finally
     {
         if (oData != null)
         {
             oData.Dispose();
             oData = null;
         }
     }
     return(oConnKeys);
 }
示例#4
0
 internal FS.Data.Common.ConnKeys GetConnKeys()
 {
     FS.Data.Common.ConnKeys oConnKeys = null;
     FS.Data.Common.Data     objData   = null;
     try
     {
         objData   = this.GetData();
         oConnKeys = objData.ConnectionStringParams;
     }
     catch { }
     finally
     {
         if (objData != null)
         {
             objData.Dispose();
             objData = null;
         }
     }
     return(oConnKeys);
 }
 internal System.Collections.ArrayList GetConnSteps()
 {
     System.Collections.ArrayList oConnSteps = null;
     FS.Data.Common.Data          oData      = null;
     try
     {
         oData      = this.GetData();
         oConnSteps = oData.ConnectionStringSteps;
     }
     catch { }
     finally
     {
         if (oData != null)
         {
             oData.Dispose();
             oData = null;
         }
     }
     return(oConnSteps);
 }
示例#6
0
        /*
         #region GetConnectionString
         * public string GetConnectionString(cItemKeys oKeys)
         * {
         *    string strRET = string.Empty;
         *    FS.Data.Common.Data objData = null;
         *    try
         *    {
         *       objData = this.GetData();
         *       strRET = this.GetConnectionString(oKeys, objData);
         *     }
         *    catch { }
         *    finally
         *    {
         *       if (objData != null)
         *       {
         *          objData.Dispose();
         *          objData = null;
         *       }
         *     }
         *    return strRET;
         *  }
         #endregion
         */

        #region GetConnectionString
        private string GetConnectionString(FS.Data.Common.ConnKeys oConnKeys, FS.Data.Common.Data objData)
        {
            string sRET = string.Empty;

            System.Reflection.MethodInfo oMehodInfo = null;

            try
            {
                if (objData != null)
                {
                    oMehodInfo = objData.GetType().GetMethod("GetConnectionString", oConnKeys.ToTypeArray());
                    sRET       = (string)oMehodInfo.Invoke(objData, oConnKeys.ToValueArray());
                }
            }
            catch (System.Exception ex) { throw ex; }
            finally
            {
                oMehodInfo = null;
            }
            return(sRET);
        }
示例#7
0
        private static Type GetTypeByFileName(string sFileName)
        {
            Type oType = null;

            FS.Data.Common.Data oData = null;
            try
            {
                string sTypeName = sFileName.Replace("FriendData.", "FS.Data.");
                oData          = FS.Data.Common.Abstracter.GetDataByTypeName(sTypeName);
                oType          = oData.GetEngineType();
                oType.TypeName = sTypeName;
            }
            catch
            {
            }
            finally
            {
                oData.Dispose();
                oData = null;
            }
            return(oType);
        }
示例#8
0
        public static FS.Data.Common.Data GetDataByTypeName(string sTypeName)
        {
            FS.Data.Common.Data oRet             = null;
            InnerAbstracter     oInnerAbstracter = null;

            try
            {
                oInnerAbstracter = new InnerAbstracter(sTypeName);
                oRet             = oInnerAbstracter.GetData();
            }
            catch
            {
            }
            finally
            {
                if (oInnerAbstracter != null)
                {
                    oInnerAbstracter.Dispose();
                    oInnerAbstracter = null;
                }
            }

            return(oRet);
        }
示例#9
0
 private void Wizard_GetData(ref FS.Data.Common.Data oData)
 {
     oData = this.Data;
 }
示例#10
0
 private void Wizard_GetData(ref FS.Data.Common.Data value)
 {
     value = this.Data;
 }