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); }
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); }
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); }
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); }
/* #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); }
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); }
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); }
private void Wizard_GetData(ref FS.Data.Common.Data oData) { oData = this.Data; }
private void Wizard_GetData(ref FS.Data.Common.Data value) { value = this.Data; }