MicroLite.Driver.PostgreSqlDbDriver.IsStoredProcedureCall C# (CSharp) Méthode

IsStoredProcedureCall() protected méthode

protected IsStoredProcedureCall ( string commandText ) : bool
commandText string
Résultat bool
        protected override bool IsStoredProcedureCall(string commandText)
        {
            if (commandText == null)
            {
                throw new ArgumentNullException("commandText");
            }

            return this.SupportsStoredProcedures
                && commandText.IndexOf("FROM", StringComparison.OrdinalIgnoreCase) == -1
                && commandText.StartsWith(this.SqlCharacters.StoredProcedureInvocationCommand, StringComparison.OrdinalIgnoreCase)
                && !commandText.Contains(this.SqlCharacters.StatementSeparator);
        }