I am have a problem where 4 fields of my classes are not being populated from 
the database.
 
I have several tables that have 4 columns that are the same in each (UserID, 
EntryDate, UpdateUserID, & UpdateDate). Rather than have to recreate these 4 
public properties in every class in my Domain model, I implemented them in a 
base clase (Auditable) that my domain objects inherit from.

public class Auditable
{
    private Guid _userID;
    private Nullable<DateTime> _entryDate;
    private Guid _updateUserID;
    private Nullable<DateTime> _updateDate;

    // Constructor(s)
    public Auditable()
    {
        _entryDate = null;
        _updateDate = null;
    }// Auditable()

    
    public Guid UserID
    {
        get { return _userID; }
        set { _userID = value; }
    }// UserID

    public Nullable<DateTime> EntryDate
    {
        get { return _entryDate; }
        set { _entryDate = value; }
    }// EntryDate

     public Guid UpdateUserID
    {
        get { return _updateUserID; }
        set { _updateUserID = value; }
    }// UpdateUserID

    public Nullable<DateTime> UpdateDate
    {
        get { return _updateDate; }
        set { _updateDate = value; }
    }// UpdateDate
}// class Auditable

public class Registration : Auditable
{
}// class Registration


The problem is that these 4 fields are not getting populated when retrieving a 
record from the database. Is this the expected behaviour?



-={ Kyle }=-




 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.
http://farechase.yahoo.com/promo-generic-14795097

Reply via email to