protected override bool _IsCoreStoredProcedure(StoredProcedure storedProcedure) { bool ret = false; XmlDocument doc = new XmlDocument(); doc.LoadXml(new StreamReader(Assembly.GetAssembly(typeof(FBConnection)).GetManifestResourceStream("Org.Reddragonit.Dbpro.Connections.Firebird.StringIDProcedures.xml")).ReadToEnd()); foreach (XmlElement proc in doc.GetElementsByTagName("Procedure")) { if (proc.ChildNodes[0].InnerText == storedProcedure.ProcedureName) { ret = true; break; } } return ret; }
internal bool IsCoreStoredProcedure(StoredProcedure storedProcedure) { return _IsCoreStoredProcedure(storedProcedure); }
internal virtual string UpdateProcedure(StoredProcedure procedure) { if (procedure.ParameterLines == null || procedure.ParameterLines == "") { if (procedure.ReturnLine != null) return string.Format(UpdateProcedureStringNoParametersWithReturn, new object[] { procedure.ProcedureName, procedure.ReturnLine, procedure.DeclareLines, procedure.Code }); return string.Format(UpdateProcedureStringNoParameters, new object[] { procedure.ProcedureName, procedure.DeclareLines, procedure.Code }); } else { if (procedure.ReturnLine != null) return string.Format(UpdateProcedureStringWithReturn, new object[] { procedure.ProcedureName, procedure.ParameterLines, procedure.ReturnLine, procedure.DeclareLines, procedure.Code }); return string.Format(UpdateProcedureString, new object[] { procedure.ProcedureName, procedure.ParameterLines, procedure.DeclareLines, procedure.Code }); } }
protected abstract bool _IsCoreStoredProcedure(StoredProcedure storedProcedure);