User Profile

Collapse

Profile Sidebar

Collapse
moorcroft
moorcroft
Last Activity: May 24 '10, 10:51 AM
Joined: Mar 28 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • moorcroft
    started a topic NHibernate one to many problem

    NHibernate one to many problem

    Hi I'm trying to map some tables using Nhibernate and it generally works apart from when it comes to one-to-many classes. I have a Visits table where each visit has many Inspection records.

    The mapping file for Visits contains the following:

    Code:
    <bag  name="Inspections" lazy="false" fetch="select" cascade="none" inverse="true">
    			<key column="VISIT_COUNTER"/>
    ...
    See more | Go to post

  • moorcroft
    replied to Network help through socks proxy
    Yes everything else works as required. I need to encrypt all my traffic and that's why I am using this setup. The internet runs through the proxy on 1080, and I confirm this by googling my IP. uTorrent always works unless I run it through this method. Any help would be appreciated
    See more | Go to post

    Leave a comment:


  • moorcroft
    started a topic Network help through socks proxy

    Network help through socks proxy

    Hi, I'm looking networking help. I have a secure tunnel set up which gives me an http proxy on port 8080 and a socks proxy on port 1080. I also have ProxyCap installed which is configured to push all network traffic apart from a few exceptions through the socks proxy.

    Basically my problem is that if I try to run uTorrent with this method, it freezes and will not let me connect to any tracker. Could someone please give me a hand with...
    See more | Go to post

  • moorcroft
    replied to Need help transforming xml with an xslt
    in XML
    Forget about it actually, I've just done it differently using a stored procedure.... :/
    See more | Go to post

    Leave a comment:


  • moorcroft
    started a topic Need help transforming xml with an xslt
    in XML

    Need help transforming xml with an xslt

    Hi I am looking for help with an xsl transform of an xml file. The problem is with <xsl:with-param>.

    The following is what I have:

    Code:
    <xsl:param name="paramTest">$LINKNUM$</xsl:param>
    
    <key name="$LINKNUM$">SELECT count(1) from applications</key>
    
    <xsl:choose>
          <xsl:when test="$paramTest = '0' ">
    ...
    See more | Go to post

  • moorcroft
    replied to Why is HttpContext.Current set to null?
    in .NET
    Hi I fixed the issue, the project is an ASP .Net web service written with the web service software factory and using NHibernate for the database mapping. I realised I didn't actually need to instantiate this class in the first place so I just set up the session variable manually
    See more | Go to post

    Leave a comment:


  • moorcroft
    replied to Why is HttpContext.Current set to null?
    in .NET
    No you are wrong here, because the following shows an extract from a different project:

    Code:
            private static ISessionFactory SessionFactory
            {
                get
                {
                    ISessionFactory sessionFactory = null;
                    using (Tracer trace = new Tracer("Debug"))
                    {
                        sessionFactory = HttpContext.Current.Application["sessionFactory"]
    ...
    See more | Go to post

    Leave a comment:


  • moorcroft
    replied to Why is HttpContext.Current set to null?
    in .NET
    Yeh I know that part, I need it to be set to null so that it will go into the if part, however HttpContext.Cur rent is null and therefore it doesnt know how to do HttpContext.Cur rent.Applicatio n.

    If you know what I'm trying to say?
    See more | Go to post

    Leave a comment:


  • moorcroft
    started a topic Why is HttpContext.Current set to null?
    in .NET

    Why is HttpContext.Current set to null?

    Hi the following lump of code throws a null exception because the .Current value is set to null (line 6). Could someone please help me understand why? I've taken this from a previous working project..

    Code:
            private static ISessionFactory SessionFactory
            {
                get
                {
                    ISessionFactory sessionFactory = null;
                    sessionFactory = HttpContext.Current.Application["sessionFactory"]
    ...
    See more | Go to post

  • Cheers, I was just confusing myself. The project that wasn't using the correct config was my unit test project and I realised I needed to replicate the original web.config in the unit test project just..
    See more | Go to post

    Leave a comment:


  • How does System.Configuration.ConfigurationManager know what web.config to use?

    I have a .Net web service solution set up and it has about 8 projects within the solution. One of the projects is the main host project and it contains the web.config that I wish to use for the solution configuration. I'm wondering how System.Configur ation.Configura tionManager knows how to look in this config file for settings as it currently does not seem to look in here..
    See more | Go to post

  • OK forget about this actually I've worked out that it should now be:

    Code:
    criteria.Add(Restrictions.Eq("ApplicationNumber", referenceNumber));
    See more | Go to post

    Leave a comment:


  • moorcroft
    started a topic Wondering if someone can help me with NHibernate
    in .NET

    Wondering if someone can help me with NHibernate

    Hi I'm looking for help with getting the latest NHibernate to work with my .Net 3.5 VS 2008 project that I am migrating from .Net 2.0 on VS 2005. Previously (VS 2005 .Net 2.0) I would use the folling lines to query the database:

    Code:
    ICriteria criteria = mSession.CreateCriteria(typeof(Application));
    criteria.Add(new EqExpression("ReferenceNumber", "2008/0128/NEW", true));
    BCApplication application = (A
    ...
    See more | Go to post

  • I've just realised it's easier than I thought, simply now have to say:

    Code:
    return image.Notes
    :D
    See more | Go to post

    Leave a comment:


  • Need help with ICriteria interface within NHibernate (C#)

    Hi, I'm pretty new to the NHibernate framework and am trying to use it to query my database. I have a lookup table set up (image.hbm.xml) with the properties set out as follows:

    Code:
        <property name="ForeignLink" column="FORNBLG" />
        <property name="IncludeInMerge" column="INCLUDE_IN_MERGE" />
        <property name="ReferenceNumber" column="REF_NO"
    ...
    See more | Go to post

  • moorcroft
    replied to What are my PC specs!?
    No it's still got the same hardware it started with, I've had a look in the past and know nothing has been changed, I just need to find out if its SATA or not!!
    See more | Go to post

    Leave a comment:


  • moorcroft
    replied to What are my PC specs!?
    I'm not at my PC though, I'm in work and I'm being offered a 320Gb SATA drive for £20 and don't have long to respond..
    See more | Go to post

    Leave a comment:


  • moorcroft
    started a topic What are my PC specs!?

    What are my PC specs!?

    A few years ago I purchased a Compaq Presario SR1139UK off a guy over ebay. It had no documentation or anything with it and through a lot of googling I still cant find full specs for it.

    I'm looking to see if I can put a SATA hard drive in it so Im wondering if someone could help me find specs for it?
    See more | Go to post

  • moorcroft
    replied to Org.w3c.dom Document not parsing correctly
    in Java
    Good job cheers, its working now :-D
    See more | Go to post

    Leave a comment:


  • moorcroft
    replied to Org.w3c.dom Document not parsing correctly
    in Java
    Because I didn't write the code! The person who wrote it has left our company and it's my job to go through all his work and discover how he wrote it and where bugs are coming from!

    Should this work correctly if I just do not set it as an object then?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...