I think I figured it out.  I needed to modify my mapping.  Here is the
correct .cs and mapping file

  <class name="SearchInput" lazy="true">
    <id name="Id" type="Int32" column="Id" unsaved-value="0">
      <generator class="identity" />
    </id>
    <one-to-one name="SSN" class="SearchInput" />
    <one-to-one name="FirstName" class="SearchInput" />
    <one-to-one name="MiddleInitial" class="SearchInput" />
    <one-to-one name="LastName" class="SearchInput" />
  </class>

    public class SearchInput
    {
        public virtual int Id { get; set; }
        public virtual IList<SearchInputHelper> SSN { get; set; }
        public virtual IList<SearchInputHelper> FirstName { get;
set; }
        public virtual IList<SearchInputHelper> MiddleInitial { get;
set; }
        public virtual IList<SearchInputHelper> LastName { get; set; }
    }

    public class SearchInputHelper
    {
        public string val { get; set; }
        public string valDetails { get; set; }
    }




On Oct 6, 3:25 pm, DaveM <[email protected]> wrote:
> I am trying to create a search method that allows for the user to
> search on certain fields (with a small twist).  For example; they can
> search on FirstName that begins with "J", LastName that contains "on"
> and so on.  I am using WebOrb as the glue to my middle-tier.
>
> I am thinking of accomplishing this by dynamically building the query
> in C#.  Right now I have the following classes ...
>
>     public class SearchInput
>     {
>         ////begin input/output values for search (non custom)
>         public virtual int ControlNumberID { get; set; }
>         public virtual IList<SearchInputHelper> SSN { get; set; }
>         public virtual IList<SearchInputHelper> FirstName { get;
> set; }
>         public virtual IList<SearchInputHelper> MiddleInitial { get;
> set; }
>         public virtual IList<SearchInputHelper> LastName { get; set; }
>         ////end input/output values for search (non custom)
>     }
>
>     public class SearchInputHelper
>     {
>         public virtual string val { get; set; }
>         public virtual string valDetails { get; set; }  //b = begins
> with, e = ends with, c = contains, l = literal
>     }
>
> When I view this in WebOrb I get what I want ...
>
> FirstName with a childnode that I can expand and it has an input for
> val and valDetails.
>
> This creates a problem in the mapping because when I do this and I try
> to call another method completely separate from this I get an error.
>
> Please let me know if I need to provide further information.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to