I tried the following:
// This is the plain web service
TestAdminServices.AdministrationServiceClient client = new TestAdminServices.AdministrationServiceClient();
List<TestAdminServices.ProjectsDto> projs= client.ReadProjectses(); //return a list of current projects
// Now create a new project
TestAdminServices.ProjectsDto prj = new TestAdminServices.ProjectsDto();
prj.Comments = "First Created by code";
prj.CreationDate = DateTime.Now;
prj.ModificationDate = prj.CreationDate;
prj.DatabaseName = "IBET_Data";
prj.MapName = "Hello Steve";
prj.ProjectName = "IBEt_MAIN";
// now persist it
client.UpdateProjects(prj); // <- THIS GENERATES "An object key cannot be resolved from string"
How can I create a new project object and have it persist back to the database? Any help or suggestions would be appreciated.
Steve