.net - Intellisense doesn't work - Either with Summary Tag -
i don't know going on..
i did repository generic pattern interface entityframework contexts, , interface contains 5 methods.
-query -insert -delete -synchronize -dispose
i wrote documentation in summary section, when use class, intelisense doens't show information, try moved summary interface , class implements interface, doesn't work too.
here classes , interface
public interface irepositorysource : idisposable { /// <summary> /// allow queries linq entities throught iqueryable interface /// </summary> /// <typeparam name="t"></typeparam> /// <returns>teste</returns> iqueryable<t> query<t>() t : class; /// <summary> /// insert e object in specific table. /// inserted object on database after synchronize called. /// </summary> /// <typeparam name="t"></typeparam> /// <param name="e"></param> void insert<t>(t e) t : class; /// <summary> /// delete e object specific table. /// deleted object removed database after synchronize called. /// </summary> /// <typeparam name="t"></typeparam> /// <param name="e"></param> void delete<t>(t e) t : class; /// <summary> /// synchronize database pending operations. /// </summary> void synchronize(); /// <summary> /// free managed resources such connection , objectcontext associated repository /// </summary> void dispose(); } /// <summary> /// inherit class, repository patter query datasource. /// </summary> public class repositorybase : irepositorysource, idisposable { readonly objectcontext m_context; public repositorybase(objectcontext context) { if ( context == null ) throw new argumentnullexception("context"); m_context = context; } objectset<t> table<t>() t : class { // // entity framework creates properties same name of type want access, // easy map types properties throught reflection // property of context name of type. // return (objectset<t>) m_context.gettype().getproperty(typeof(t).name).getvalue(m_context, null); } public iqueryable<t> query<t>() t : class { return table<t>(); } public void insert<t>(t e) t : class { table<t>().addobject(e); } public void delete<t>(t e) t : class { table<t>().deleteobject(e); } public void synchronize() { m_context.savechanges(); } public void dispose() { m_context.dispose(); } } you know what's happening?
the solution found through visual studio, click on class library project, properties, build, xml documentation file checked.
Comments
Post a Comment