On Tue, May 8, 2012 at 2:16 PM, MB Software Solutions, LLC
<[email protected]> wrote:
> On 5/8/2012 3:08 PM, Alan Bourke wrote:
>>
>>
>> On Tue, May 8, 2012, at 02:33 PM, MB Software Solutions,        LLC
>> wrote:
>>
>>
>>>> But personally I'm not keen on this.
>>>
>>>
>>> May I ask "why not?"
>>
>> Maybe because to do that your class has to implement IEnumerable ?
>
>
>
> So?  What's the big deal?  Teach me a lesson on this!  lol
---------------

I use this for defining my data classes:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;   << Add a reference to your
project for this

namespace aCompnay.DataClasses
{
    [DataContract(Name = "poLine", Namespace =
"http://schemas.aCompany.com/Tools/PO/v1.0";)]
    public class POLine
    {

        [DataMember(Name = "POID", Order = 1, IsRequired = true)]
        public Int32 poiD
        {
            get;
            set;
        }
        [DataMember(Name = "POLinesID", Order = 1, IsRequired = true)]
        public Int32 poLinesID
        {
            get;
            set;
        }

        [DataMember(Name = "LineNumber", Order = 1, IsRequired = true)]
        public String lineNumber
        {
            get;
            set;
        }
        //
        [DataMember(Name = "Quantity", Order = 1, IsRequired = true)]
        public String quantity
        {
            get;
            set;
        }

        [DataMember(Name = "UOM", Order = 1, IsRequired = true)]
        public String uom
        {
            get;
            set;
        }

        [DataMember(Name = "Price", Order = 1, IsRequired = true)]
        public String poCurrency
        {
            get;
            set;
        }

        [DataMember(Name = "CustomerItemNumber", Order = 1, IsRequired = true)]
        public String customerItemNumber
        {
            get;
            set;
        }
        [DataMember(Name = "RingItemNumber", Order = 1, IsRequired = true)]
        public String ringItemNumber
        {
            get;
            set;
        }
        //

        [DataMember(Name = "Description", Order = 1, IsRequired = true)]
        public String description
        {
            get;
            set;
        }
        [DataMember(Name = "Warehouse", Order = 1, IsRequired = true)]
        public String warehouse
        {
            get;
            set;
        }
        [DataMember(Name = "BaseUnitCode", Order = 1, IsRequired = true)]
        public String baseUnitCode
        {
            get;
            set;
        }
        [DataMember(Name = "POShipments", Order = 1, IsRequired = true)]
        public List<POShipment > poShipments
        {
            get;
            set;
        }
        [DataMember(Name = "Price", Order = 1, IsRequired = true)]
        public String price
        {
            get;
            set;
        }
    }
}


In your other class that is getting data :

POline pol = new POLine();
pol.warehouse="ABC";




-- 
Stephen Russell
Sr. Analyst
Ring Container Technology
Oakland TN

901.246-0159 cell

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CAJidMY+V4Nz0iivTT+=wtubflgmv1nowjbhdadqf0yvedjw...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to