User Profile

Collapse

Profile Sidebar

Collapse
scott1010
scott1010
Last Activity: Mar 25 '10, 09:21 AM
Joined: Jul 3 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • scott1010
    replied to Linq Query returning GUID
    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
    See more | Go to post

    Leave a comment:


  • scott1010
    started a topic Linq Query returning GUID

    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,
    ...
    See more | Go to post

  • scott1010
    started a topic Properties with Methods

    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:

    Code:
    MyObject.MyProperty = "1234F";
    MyObject.MyProperty.IsValid();
    MyObject.MyProperty.MyOtherMethod();
    I want to be able to add methods to properties of different types such as Strings, Ints and GUIDs.

    Cheers,
    Scott
    See more | Go to post

  • Its ok I found a pretty painless solution in the end. Not as neat as I wanted it, but still sufficient.
    See more | Go to post

    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",
    ...
    See more | Go to post

    Leave a comment:


  • scott1010
    started a topic Class Inheritance and Overriding Methods

    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...
    See more | Go to post
No activity results to display
Show More
Working...