.net - Entity Framework 6 Command Tree Interceptors for SELECT query -
i implemented base audit class , inherit other classes it.
public abstract class audit { public datetime createddate { get; set; } public string createdby { get; set; } ... } public class batch : audit { ... }
i want use base ef approach prevent select audit fields database. use audit fields analyse , don't want read application. write context.select in each query bad , not general variant.
i found information idbcommandtreeinterceptor. how can exclude createddate , createdby fields select-only queries on interceptor side?
how select batches without audit fields without implicit specify on each context query?
Comments
Post a Comment