I have been searching EVERYWHERE for this IObjectWithChangeTracker Interface that I think I need for a problem in my current project and I FINALLY discover (via this) tha开发者_JAVA百科t it isn't actually built into .Net
What I still can't figure out is how in the world do I use it!! I can't find the code anywhere, I have no idea what these T4 things are. Or where I find them. Someone help?
That site is specific for silverlight - entity framework already has self tracking entities.You can attach new objects you create as modified, deleted, etc, but altering a current object automatically tracks its state. So - what are you trying to do? : )
t4 files are code generation files. You can basically include a template (.tt file) in your project and when you run your project, the file is processed and generally create one or more code output files. See: http://msdn.microsoft.com/en-us/library/bb126445.aspx
精彩评论