public void Send(TSendType t) { _command.ClearParameters(); foreach (var property in t.GetType().GetProperties()) { _command.AddParameter($"@{property.Name}", property.GetValue(t)); } _command.Execute(); }
public IEnumerable <TReceiveType> Pull(params object[] parameters) { foreach (var parameter in parameters) { _command.AddParameter(parameter); } var r = _command.ExecuteReader(); var resultTable = new DataTable(); resultTable.Load(r); return(Map(resultTable)); }