public bool TryGetCommandInformation( MethodInfo method, out ICommandInformation commandInformation ) { commandInformation = new CommandInformation { CommandText = method.Name, CommandType = CommandType.StoredProcedure }; return true; }
public bool TryGetCommandInformation( MethodInfo method, out ICommandInformation commandInformation ) { foreach ( var provider in m_providers ) { if(provider.TryGetCommandInformation( method, out commandInformation )) { return true; } } commandInformation = null; return false; }
public bool TryGetCommandInformation( MethodInfo method, out ICommandInformation commandInformation ) { QueryAttribute attribute; if( !method.TryGetCustomAttribute( out attribute ) ) { commandInformation = null; return false; } commandInformation = new CommandInformation { CommandText = attribute.CommandText, CommandType = attribute.CommandType }; return true; }