No its definitely a GUID.
I had a further thought after I posted and it turns out it was bug in database tool I was using, and they are releasing a fix.
Thanks
Scott
User Profile
Collapse
-
Linq Query returning GUID
Hello I am having problems with a Linq query. I need to return an ID field which is of type GUID (c.Id) along with other fields of type String.
I have tried both anonymous types and strongly typed objects but continue to encounter the same error:
Method 1: Anonymously Typed
...Code:var results = (from c in uow.Contacts orderby c.LastName ascending, c.FirstName ascending select new {ID=c.Id, Title = c.Title, LastName=c.LastName, -
Properties with Methods
Hello,
I am sure this is easy, but I am not sure what to search for but I am looking to be able to do something like:
I want to be able to add methods to properties of different types such as Strings, Ints and GUIDs.Code:MyObject.MyProperty = "1234F"; MyObject.MyProperty.IsValid(); MyObject.MyProperty.MyOtherMethod();
Cheers,
Scott -
Its ok I found a pretty painless solution in the end. Not as neat as I wanted it, but still sufficient.Leave a comment:
-
You may need to provide the proxy connection in the creation of the service object as described in this article:
http://www.codeproject.com/KB/webser...xy.aspx?df=100
Extracted code:
...Code:Dim service As New YourService.Class Dim credentials As New System.Net.NetworkCredential("username", "password", "domain") Dim proxy As New System.Net.WebProxy("10.0.0.1",Leave a comment:
-
Class Inheritance and Overriding Methods
Hello,
I am currently using Linq To Sql classes in my project, and I am implementing validation, but I am having a problem trying to create a generic validation class that I can use with the Linq To Sql classes.
Specifically, I have a class named Contact - that has been generated automatically by Linq To Sql. So I can't change anything in it. But as it is a partial class I created another partial Contact that I want...
No activity results to display
Show More
Leave a comment: