How can i use custom dbcontext (Audit Log)

62 views
Skip to first unread message

muhamme...@gmail.com

unread,
Mar 14, 2016, 3:40:33 PM3/14/16
to SharpRepository
Hi there,

I have a custom dbcontext which name is Tracker-enabled DbContext (https://github.com/bilal-fazlani/tracker-enabled-dbcontext). And i want to use it for audit log

And how can i implement EFRepository ?

Thanks.

Jeff Treuting

unread,
Mar 15, 2016, 12:34:58 PM3/15/16
to muhamme...@gmail.com, SharpRepository
You will want to setup dependency injection so that you can inject a specific type of DbContext for SharpRepository to use.

There is some information in this blog post: http://fairwaytech.com/2013/02/sharprepository-configuration/

Look for the section titled "ENTITY FRAMEWORK AND SHARING THE DBCONTEXT"

Hope that helps.

________________________________________
From: sharpre...@googlegroups.com <sharpre...@googlegroups.com> on behalf of muhamme...@gmail.com <muhamme...@gmail.com>
Sent: Monday, March 14, 2016 12:40 PM
To: SharpRepository
Subject: [SharpRepository] How can i use custom dbcontext (Audit Log)
--
You received this message because you are subscribed to the Google Groups "SharpRepository" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharpreposito...@googlegroups.com.
To post to this group, send email to sharpre...@googlegroups.com.
Visit this group at https://groups.google.com/group/sharprepository.
To view this discussion on the web visit https://groups.google.com/d/msgid/sharprepository/d793a7aa-00ea-4eae-935b-7428099508f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages