recently added wcf service , wanted use them in mvc application.
right clicked on service references-> add service reference , added service.
however in service references folder see files following extensions added. .svcinfo, .disco, .wsdl, .xsd, reference.cs , svcmap.
and .datasource file not added(compared other projects).
i read .datasource files not required time. why datasource files automatically added in other project? , setting missing.
this not normal behavior.
regarding whether "not required time", used designer tools offer pre-canned data source selections when creating object data source. not compiled [and have no runtime effect] , hence can safely deleted if don't intend use mechanism feed data controls.
there no way control generation or not of .datasource files - main thing dictates whether wsdl defines such structures.
if using shared contracts dll , have configured in service reference, they'll added under \properties\datasources.
if omit specify option, they'll nested underneath .svcmap file in solution explorer tree.
Comments
Post a Comment