Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

duncanmhor

@duncanmhor
About
Posts
31
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Disassemble Linq query
    D duncanmhor

    Thanks to you both, I'll give this a try on Monday. Have a good weekend

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    LINQ csharp database linq help question

  • Disassemble Linq query
    D duncanmhor

    "cannot resolve symbol h__TransparentIdentifier1a"

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    LINQ csharp database linq help question

  • Disassemble Linq query
    D duncanmhor

    I'm sorry, I should have made it clear that I have removed all angle brackets from the code, but the error remains.

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    LINQ csharp database linq help question

  • Disassemble Linq query
    D duncanmhor

    Thanks Eslam, but I already had that configuration

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    LINQ csharp database linq help question

  • Disassemble Linq query
    D duncanmhor

    Thanks for that Jon, much appreciated. Unfortunately though, it doesn't work.

    return (from h__TransparentIdentifier1b in from b in context.brands
    join p in context.products on b.brand_id equals p.brand_ID //into p
    join pi in context.product_items on p.product_id equals pi.product_id
    select new { h__TransparentIdentifier1a = h__TransparentIdentifier1a, pi = pi }
    orderby h__TransparentIdentifier1b.pi.display_order
    select h__TransparentIdentifier1b into h__TransparentIdentifier1b
    join i in context.image_product_item_links on h__TransparentIdentifier1b.pi.product_item_id equals i.product_item_id //into i
    join ac in context.attribute_colors on <>h__TransparentIdentifier1b.pi.color_attribute_id equals ac.attribute_color_id //into ac
    where ((<>h__TransparentIdentifier1b.<>h__TransparentIdentifier1a.b.brand_id.Equals(brand_id) && (i.product_item_id == h__TransparentIdentifier1b.pi.product_item_id)) && h__TransparentIdentifier1b.h__TransparentIdentifier1a.p.is_live) && h__TransparentIdentifier1b.pi.is_live
    select ac).ToList().Distinct().ToList();

    Gives the error "cannot resolve symbol h__TransparentIdentifier1a" on the second reference to it (line four of the posted code)

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    LINQ csharp database linq help question

  • Does the Pope know what he's talking about?
    D duncanmhor

    Assuming the quote is accurate, he's taking some liberties. I seem to remember studying Aquinas' requirements for a just war in high school.

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    The Back Room javascript com question

  • Disassemble Linq query
    D duncanmhor

    Hi All, I have been tasked with recovering some source code from compiled assemblies (all legit, the work was done in-house but the code has gone missing). I've been using reflector, and have disassembled the assemblies. My current issue is that there is a considerable number of linq queries going on, and reflector, excellent tool though it is, seems to have trouble with them. I'm getting output like this:

    return (from <>h__TransparentIdentifier1b in from b in context.brands
    join p in context.products on b.brand_id equals p.brand_ID \\into p
    join pi in context.product_items on p.product_id equals pi.product_id
    select new { <>h__TransparentIdentifier1a = <>h__TransparentIdentifier1a, pi = pi }
    orderby <>h__TransparentIdentifier1b.pi.display_order
    select <>h__TransparentIdentifier1b into <>h__TransparentIdentifier1b
    join i in context.image_product_item_links on <>h__TransparentIdentifier1b.pi.product_item_id equals i.product_item_id into i
    join ac in context.attribute_colors on <>h__TransparentIdentifier1b.pi.color_attribute_id equals ac.attribute_color_id into ac
    where ((<>h__TransparentIdentifier1b.<>h__TransparentIdentifier1a.b.brand_id.Equals(brand_id) && (i.product_item_id == <>h__TransparentIdentifier1b.pi.product_item_id)) && <>h__TransparentIdentifier1b.<>h__TransparentIdentifier1a.p.is_live) && <>h__TransparentIdentifier1b.pi.is_live
    select ac)

    Can anyone give me any hints as to how I would go about reconstituting the original query? Thanks in advance

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    LINQ csharp database linq help question

  • Help with deriving DataContract from Plain Old Xml Service
    D duncanmhor

    Hi all, having a bit of trouble with setting up a WCF client to consume a POX service (Truvevo video) The service returns an XML doc like this:

    <Response>
    <VideoSet>
    <totalResultsAvailable>
    integer value
    </totalResultsAvailable>
    <totalResultsReturned>
    integer value
    </totalResultsReturned>
    <firstResultPosition>
    integer value
    </firstResultPosition>
    <Video>
    Nested XML elements
    </Video>
    <Video>
    Nested XML elements
    </Video>
    <Video>
    Nested XML elements
    </Video>
    <VideoSet>
    </Response>

    In order to consume this service, I set up a WCF client that has this

    [DataContract(Namespace = "http://xml.searchvideo.com")]
    public class Response
    {
    ///
    /// Within the response we find the VideoSet tag, which
    /// contains an array of Videos.

        //\[DataMember(Name = "VideoSet")\]
        //public Video\[\] TheVideoSet;
    
        \[DataMember(Name = "VideoSet")\]
        public VideoSet TheVideoSet;
    }
    

    [DataContract(Namespace = "http://xml.searchvideo.com")]
    public class VideoSet
    {
    [DataMember(Name = "totalResultsAvailable")]
    public int TotalResultsAvailable;

        \[DataMember(Name="totalResultsReturned")\]
        public int TotalResultsReturned;
    
        \[DataMember(Name="firstResultPosition")\]
        public int FirstResultPositon;
    
        \[DataMember(Name="Video")\]
        public Video\[\] TheVideos   
    
    }
    

    If I run this code, I have values assigned for the three integer types, but the array is null. If I change the code in the Response class and simply add the Videoset DataMember attribute directly to the array of Video objects (these work), the array is populated, but obviously I don't get the results info. Anyone have any ideas?

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    WCF and WF csharp wcf com data-structures xml

  • What does your company do for creating setup?
    D duncanmhor

    Custom actions can be tricky using Wix, but there is a great deal of functionality provided by the extensions that come with it. Everything from editing XML configuration files to creating databases and IIS sites. Quite honestly I've not had to do anything that couldn't be done with Wix. It is also compatible with msbuild scripts, which may or may not be an advantage to you.

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    The Lounge c++ question workspace

  • An application suite
    D duncanmhor

    Take a look at this article it describes how you could addeach application as a feature in an installer.

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    C# question

  • code for calculator using c#.net
    D duncanmhor

    Process.Start(Calculator.exe);

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    C# csharp

  • code for creating menus with submenus using c#.net
    D duncanmhor

    As my mother always said, "I want doesn't get"

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    C# csharp

  • Reading data from ms sql
    D duncanmhor

    There is an open source tool here that might do what you're after. Google is your friend. Use him, that's what friends are for.;P

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    C# database csharp mysql sql-server sysadmin

  • interesting topic plz help
    D duncanmhor

    That's called cracking, don't do it, its naughty

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    C# csharp help tutorial

  • hide IP address
    D duncanmhor

    Why reinvent the wheel? Try Tor

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    C# csharp tutorial

  • what is the different between override and overwrite
    D duncanmhor

    override is a c# keyword, and overrides is VB.NET. I believe they do the same thing, although there may be subtle differences of which I am not aware.

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    C# question

  • Reg: Repeating Mail id's in to Address while sending mails
    D duncanmhor

    Looks like you are continuously adding the address to the objmailsender object. Try moving your declarations into the for loop, this will create a new object for each mail, and therefore not store the previous address.

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    C# csharp com data-structures testing beta-testing

  • disable button on one webform from other
    D duncanmhor

    If you are opening form2 from form1, pass a value from form1 indicating which button was pressed. In the page_load event handler, enable or disable the button depending on the value received.

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    C# announcement

  • Using .NET 2.0 from VS2003 editor ?
    D duncanmhor

    Yes, you can use dot net 3 in VS2005, but not in VS2003.

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    C# csharp html dotnet com question

  • call c# class from Java using JNI
    D duncanmhor

    This is more of a Java programming question than a C# one. There is a JNI tutorial here

    "You're very clever, young man, very clever," said the old lady. "But it's turtles all the way down!"

    C# csharp java visual-studio help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups