Last post Feb 04, 2014 11:28 PM by akhilrajau
Feb 04, 2014 09:16 PM|akhilrajau|LINK
We are using restful services simply returns json string by serializing JSON.NET. It is best practices to add namespaces to data contract. But we are not using any data contract since we are using Data Table to fetch the data simple return as json string.
Can you help me whether this service needs any namespaces? if yes where and why?
Feb 04, 2014 09:26 PM|jsiahaan|LINK
Every things must have a nameSpace. Using other data contract actually also using nameSpace. NameSpace can be in the same project, or in the same solution, or in a .dll file.
If we have our service, model and business process at the same nameSpace, it seem not use a nameSpace here, of cource it just not specified. There is no problem also if we specify it. If we make it in one folder, we can also change it's nameSpace to any
But We must have nameSpace, just because and object class must be under a nameSpace.
Feb 04, 2014 11:28 PM|akhilrajau|LINK
thanks friend. But i am not getting you prperly. I asked about data contract namespace specified using attributes