.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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -