I have an application C#
MVC
with DDD
and in repository
I'm making the call like this:
return DbSet.Include(i => i.Cliente).FirstOrDefault(a => a.ProcessoId == processoId);
DbSet->
is in repositoy
of Process
public class Processo
{
public int Id { get; set; }
public string Obs { get; set; } <- varchar(max)
public int? ClienteId { get; set; }
public virtual Cliente Cliente { get; set; }
}
Questions:
Using DbSet
can you ignore the Obs
field in the query return?
(ie instead of SELECT * seja feito SELECT Id, ClienteId, ... Join...
)
Does anyone know of any other way to do this and keep the include?
Some component, similar project, suggestions welcome.