コード例 #1
0
 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;
 }
コード例 #2
0
 internal bool IsCoreStoredProcedure(StoredProcedure storedProcedure)
 {
     return _IsCoreStoredProcedure(storedProcedure);
 }
コード例 #3
0
ファイル: QueryBuilder.cs プロジェクト: marquismark/dbpro-orm
 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 });
     }
 }
コード例 #4
0
 protected abstract bool _IsCoreStoredProcedure(StoredProcedure storedProcedure);