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 ) { QueryAttribute attribute; if( !method.TryGetCustomAttribute( out attribute ) ) { commandInformation = null; return false; } commandInformation = new CommandInformation { CommandText = attribute.CommandText, CommandType = attribute.CommandType }; return true; }