DataPortal.Fetch failed (Property load or set failed for property PostalCode

DataPortal.Fetch failed (Property load or set failed for property PostalCode

Old forum URL: forums.lhotka.net/forums/t/6105.aspx


koen@skn.be posted on Thursday, January 08, 2009

DataPortal.Fetch failed (Property load or set failed for property PostalCode (Unable to cast object of type 'Csla.SmartDate' to type 'System.String'.))

I have an application with 2 bo's (Country, Customer).
The app works with objectfactory.

When I do GetCountries and fill the grid all works fine, when now I execute GetCustomers I get the error.

// Base BusObject
using System;
using System.Runtime.Serialization;
using Csla;

namespace SKN.Library
{
[Serializable]
public class BusObjectEdit : BusinessBase
{
private static int _forceinit;

protected BusObjectEdit()
{
_forceinit = 0;
}

protected override void OnDeserialized(StreamingContext context)
{
_forceinit = 0;
base.OnDeserialized(context);
}

public static readonly PropertyInfo ActiveProperty =
RegisterProperty(new PropertyInfo("Active", "Active", true));

public static readonly PropertyInfo ClassProperty =
RegisterProperty(new PropertyInfo("Class", "Class"));

public static readonly PropertyInfo CreateDateProperty =
RegisterProperty(new PropertyInfo("CreateDate", "CreateDate", DateTime.Now));

public static readonly PropertyInfo IdProperty =
RegisterProperty(new PropertyInfo("Id", "Id", Guid.NewGuid().ToString().Replace("-", "")));

public static readonly PropertyInfo UpdateDateProperty =
RegisterProperty(new PropertyInfo("UpdateDate", "UpdateDate", DateTime.Now));

public string Class
{
get { return GetProperty(ClassProperty); }
set { SetProperty(ClassProperty, value); }
}
public string Id
{
get { return GetProperty(IdProperty); }
set { SetProperty(IdProperty, value); }
}
public SmartDate CreateDate
{
get { return GetProperty(CreateDateProperty); }
set { SetProperty(CreateDateProperty, value); }
}
public SmartDate UpdateDate
{
get { return GetProperty(UpdateDateProperty); }
set { SetProperty(UpdateDateProperty, value); }
}
public Boolean Active
{
get { return GetProperty(ActiveProperty); }
set { SetProperty(ActiveProperty, value); }
}

public static BusObjectEdit NewBusObject()
{
return DataPortal.Create();
}

public void MapEntityToObject(BusObjectDTO pBusObjectDTO)
{
LoadProperty(IdProperty, pBusObjectDTO.Id);
LoadProperty(ClassProperty, pBusObjectDTO.Class);
LoadProperty(CreateDateProperty, pBusObjectDTO.CreateDate);
LoadProperty(UpdateDateProperty, pBusObjectDTO.UpdateDate);
LoadProperty(ActiveProperty, pBusObjectDTO.Active);
}

public void MapObjectoEntity(BusObjectDTO pBusObjectDTO)
{
pBusObjectDTO.Class = GetProperty(ClassProperty);
pBusObjectDTO.Id = GetProperty(IdProperty);
pBusObjectDTO.CreateDate = GetProperty(CreateDateProperty);
pBusObjectDTO.UpdateDate = GetProperty(UpdateDateProperty);
}
}
}

// Country BO
using System;
using System.Runtime.Serialization;
using Csla;
using Csla.Server;
using DataPortal = Csla.DataPortal;

namespace SKN.Library
{
[ObjectFactory("SKN.ObjectFactory.CountryFactory, SKN.ObjectFactory")]
[Serializable]
public class CountryEdit : BusObjectEdit
{
private static readonly PropertyInfo CountryIdProperty =
RegisterProperty(new PropertyInfo("CountryId", "CountryId"));

private static readonly PropertyInfo NameProperty =
RegisterProperty(new PropertyInfo("Name", "Name"));

public string CountryId
{
get { return GetProperty(CountryIdProperty); }
set { SetProperty(CountryIdProperty, value); }
}
public string Name
{
get { return GetProperty(NameProperty); }
set { SetProperty(NameProperty, value); }
}

public void MapEntityToObject(CountryDTO pCountryDTO)
{
LoadProperty(CountryIdProperty, pCountryDTO.CountryId);
LoadProperty(NameProperty, pCountryDTO.Name);
}

public void MapObjectoEntity(CountryDTO pCountryDTO)
{
pCountryDTO.CountryId = GetProperty(CountryIdProperty);
pCountryDTO.Name = GetProperty(NameProperty);
}

public static CountryEdit NewCountry()
{
return DataPortal.Create();
}

public static CountryEdit GetCountryById(SingleCriteria pCountryId) {
return DataPortal.Fetch(pCountryId);
SingleCriteria(pCountryId));
}

public static void UpdateCountry(CountryEdit pCountryEdit)
{
DataPortal.Update(pCountryEdit);
}

public static void DeleteCountry(SingleCriteria pCountryId)
{
DataPortal.Delete(pCountryId); SingleCriteria(pCountryId));
}


}
}

// BusObjectInfo
using System;
using System.Runtime.Serialization;
using Csla;

namespace SKN.Library
{
[Serializable]
public class BusObjectInfo : ReadOnlyBase
{
private static int _forceInit;

public static readonly PropertyInfo ActiveProperty =
RegisterProperty(new PropertyInfo("Active", "Active"));

private static readonly PropertyInfo ClassProperty =
RegisterProperty(new PropertyInfo("Class", "Class"));

public static readonly PropertyInfo CreateDateProperty =
RegisterProperty(new PropertyInfo("CreateDate", "CreateDate"));

private static readonly PropertyInfo IdProperty =
RegisterProperty(new PropertyInfo("Id", "Id"));

public static readonly PropertyInfo UpdateDateProperty =
RegisterProperty(new PropertyInfo("UpdateDate", "UpdateDate"));

public BusObjectInfo(BusObjectDTO pBusobjectDTO)
{
LoadProperty(ClassProperty, pBusobjectDTO.Class);
LoadProperty(IdProperty, pBusobjectDTO.Id);
LoadProperty(CreateDateProperty, pBusobjectDTO.CreateDate);
LoadProperty(UpdateDateProperty, pBusobjectDTO.UpdateDate);
LoadProperty(ActiveProperty, pBusobjectDTO.Active);
}

protected BusObjectInfo()
{
// 08/01/2009 this is needed else you get errors like
// csla one or more properties are not registered for this type
_forceInit = 0;
}

protected override void OnDeserialized(StreamingContext context)
{
// 08/01/2009 this is needed else you get errors like
// csla one or more properties are not registered for this type
_forceInit = 0;
base.OnDeserialized(context);
}

public string Class
{
get { return GetProperty(ClassProperty); }
}

public string Id
{
get { return GetProperty(IdProperty); }
}

public DateTime CreateDate
{
get { return GetProperty(CreateDateProperty); }
}

public DateTime UpdateDate
{
get { return GetProperty(UpdateDateProperty); }
}

public Boolean Active
{
get { return GetProperty(ActiveProperty); }
}
}
}

// CountryInfo
using System;
using System.Runtime.Serialization;
using Csla;

namespace SKN.Library
{
[Serializable]
public class CountryInfo : BusObjectInfo
{
private static readonly PropertyInfo CountryIdProperty =
RegisterProperty(new PropertyInfo("CountryId", "CountryId"));

private static readonly PropertyInfo NameProperty =
RegisterProperty(new PropertyInfo("Name", "Name"));

public CountryInfo(BusObjectDTO pBusobjectDTO) : base(pBusobjectDTO)
{
LoadProperty(CountryIdProperty, pBusobjectDTO.Id);
LoadProperty(NameProperty, ((CountryDTO)pBusobjectDTO).Name);
}

public string CountryId
{
get { return GetProperty(CountryIdProperty); }
}

public string Name
{
get { return GetProperty(NameProperty); }
}

protected override object GetIdValue()
{
return CountryIdProperty;
}

public override string ToString()
{
return NameProperty.ToString();
}
}
}

// Country DTO
using System;
using System.Runtime.Serialization;
using Csla;

namespace SKN.Library
{
[DataContract(Namespace = Namespaces.SKN, Name = "CountryDTO")]
[Serializable]
public class CountryDTO : BusObjectDTO
{
public CountryDTO(string pClass, string pId, SmartDate pCreateDate, SmartDate pUpdateDate, bool pActive,
string pCountryId, string pName) : base(pClass, pId, pCreateDate, pUpdateDate, pActive)
{
CountryId = pCountryId;
Name = pName;
}

[DataMember(Order = 20)]
public string CountryId { get; set; }

[DataMember(Order = 21)]
public string Name { get; set; }
}
}

// CountryInfoList
using System;
using System.Runtime.Serialization;
using Csla;
using Csla.Server;
using DataPortal = Csla.DataPortal;

namespace SKN.Library
{
[ObjectFactory("SKN.ObjectFactory.CountryListFactory, SKN.ObjectFactory")]

[Serializable]
public class CountryInfoList : ReadOnlyListBase
{
public void LoadData(CountryInfoDTOList pCountryListDTO)
{
RaiseListChangedEvents = false;
IsReadOnly = false;
foreach (CountryDTO countryDTO in pCountryListDTO)
{
Add(new CountryInfo(countryDTO));
}
IsReadOnly = true;
RaiseListChangedEvents = true;
}

public static CountryInfoList GetAllCountries()
{
return DataPortal.Fetch();
}

public static CountryInfoList GetCountriesByName(SingleCriteria pName)
{
return DataPortal.Fetch(pName);
SingleCriteria(name));
}
}
}

// CountryInfoDTOList
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace SKN.Library
{
[Serializable]
public class CountryInfoDTOList : List
{
public CountryInfoDTOList()
{
}

public CountryInfoDTOList(IEnumerable collection) : base(collection)
{
}
}
}

// county DAL
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using Csla.Data;
using Natural.EL;
using SKN.DAL;
using SKN.Library;

namespace Natural.EAL
{
[Serializable]
public class CountryEAL : ICountryDAL
{
#region ICountryDAL Members

public CountryInfoDTOList GetAllCountries()
{
using (ObjectContextManager ctx =
ObjectContextManager.GetManager("NaturalEntities"))
{
IQueryable countries = from p in ctx.ObjectContext.Land
orderby p.Basic.Naam
select p;

return LoadCountryList(countries);
}
}

#endregion

private static CountryInfoDTOList LoadCountryList(IQueryable pCountries)
{
var countryInfoDTOList = new CountryInfoDTOList();
foreach (Land c in pCountries)
{
if (!c.BasicReference.IsLoaded)
c.BasicReference.Load();
countryInfoDTOList.Add(
new CountryDTO(
c.Class,
c.Id,
c.Basic.CreateDate,
c.Basic.UpdateDate,
true,
c.Id,
c.Basic.Naam));
}
return countryInfoDTOList;
}
}
}

I got the same for Customer what could be going wrong ?
I am a newbie and testing CSLA, I hope this is a bit clear.

Is this a good way of working ?

Thx

sergeyb replied on Thursday, January 08, 2009

Sounds like properties in DTO are strings. It this is the case, you would need to use LoadPropertyConvert and ReadPropertyConvert probably.

Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

-----Original Message-----
From: koen@skn.be [mailto:cslanet@lhotka.net]
Sent: Thursday, January 08, 2009 12:16 PM
To: Sergey Barskiy
Subject: [CSLA .NET] DataPortal.Fetch failed (Property load or set failed for property PostalCode

DataPortal.Fetch failed (Property load or set failed for property PostalCode (Unable to cast object of type 'Csla.SmartDate' to type 'System.String'.))

I have an application with 2 bo's (Country, Customer).
The app works with objectfactory.

When I do GetCountries and fill the grid all works fine, when now I execute GetCustomers I get the error.

// Base BusObject
using System;
using System.Runtime.Serialization;
using Csla;

namespace SKN.Library
{
[Serializable]
public class BusObjectEdit : BusinessBase
{
private static int _forceinit;

protected BusObjectEdit()
{
_forceinit = 0;
}

protected override void OnDeserialized(StreamingContext context)
{
_forceinit = 0;
base.OnDeserialized(context);
}

public static readonly PropertyInfo ActiveProperty =
RegisterProperty(new PropertyInfo("Active", "Active", true));

public static readonly PropertyInfo ClassProperty =
RegisterProperty(new PropertyInfo("Class", "Class"));

public static readonly PropertyInfo CreateDateProperty =
RegisterProperty(new PropertyInfo("CreateDate", "CreateDate", DateTime.Now));

public static readonly PropertyInfo IdProperty =
RegisterProperty(new PropertyInfo("Id", "Id", Guid.NewGuid().ToString().Replace("-", "")));

public static readonly PropertyInfo UpdateDateProperty =
RegisterProperty(new PropertyInfo("UpdateDate", "UpdateDate", DateTime.Now));

public string Class
{
get { return GetProperty(ClassProperty); }
set { SetProperty(ClassProperty, value); }
}
public string Id
{
get { return GetProperty(IdProperty); }
set { SetProperty(IdProperty, value); }
}
public SmartDate CreateDate
{
get { return GetProperty(CreateDateProperty); }
set { SetProperty(CreateDateProperty, value); }
}
public SmartDate UpdateDate
{
get { return GetProperty(UpdateDateProperty); }
set { SetProperty(UpdateDateProperty, value); }
}
public Boolean Active
{
get { return GetProperty(ActiveProperty); }
set { SetProperty(ActiveProperty, value); }
}

public static BusObjectEdit NewBusObject()
{
return DataPortal.Create();
}

public void MapEntityToObject(BusObjectDTO pBusObjectDTO)
{
LoadProperty(IdProperty, pBusObjectDTO.Id);
LoadProperty(ClassProperty, pBusObjectDTO.Class);
LoadProperty(CreateDateProperty, pBusObjectDTO.CreateDate);
LoadProperty(UpdateDateProperty, pBusObjectDTO.UpdateDate);
LoadProperty(ActiveProperty, pBusObjectDTO.Active);
}

public void MapObjectoEntity(BusObjectDTO pBusObjectDTO)
{
pBusObjectDTO.Class = GetProperty(ClassProperty);
pBusObjectDTO.Id = GetProperty(IdProperty);
pBusObjectDTO.CreateDate = GetProperty(CreateDateProperty);
pBusObjectDTO.UpdateDate = GetProperty(UpdateDateProperty);
}
}
}

// Country BO
using System;
using System.Runtime.Serialization;
using Csla;
using Csla.Server;
using DataPortal = Csla.DataPortal;

namespace SKN.Library
{
[ObjectFactory("SKN.ObjectFactory.CountryFactory, SKN.ObjectFactory")]
[Serializable]
public class CountryEdit : BusObjectEdit
{
private static readonly PropertyInfo CountryIdProperty =
RegisterProperty(new PropertyInfo("CountryId", "CountryId"));

private static readonly PropertyInfo NameProperty =
RegisterProperty(new PropertyInfo("Name", "Name"));

public string CountryId
{
get { return GetProperty(CountryIdProperty); }
set { SetProperty(CountryIdProperty, value); }
}
public string Name
{
get { return GetProperty(NameProperty); }
set { SetProperty(NameProperty, value); }
}

public void MapEntityToObject(CountryDTO pCountryDTO)
{
LoadProperty(CountryIdProperty, pCountryDTO.CountryId);
LoadProperty(NameProperty, pCountryDTO.Name);
}

public void MapObjectoEntity(CountryDTO pCountryDTO)
{
pCountryDTO.CountryId = GetProperty(CountryIdProperty);
pCountryDTO.Name = GetProperty(NameProperty);
}

public static CountryEdit NewCountry()
{
return DataPortal.Create();
}

public static CountryEdit GetCountryById(SingleCriteria pCountryId) //String pCountryId)
{
return DataPortal.Fetch(pCountryId);
SingleCriteria(pCountryId));
}

public static void UpdateCountry(CountryEdit pCountryEdit)
{
DataPortal.Update(pCountryEdit);
}

public static void DeleteCountry(SingleCriteria pCountryId)//String pCountryId)
{
DataPortal.Delete(pCountryId);//new SingleCriteria(pCountryId));
}


}
}

// BusObjectInfo
using System;
using System.Runtime.Serialization;
using Csla;

namespace SKN.Library
{
[Serializable]
public class BusObjectInfo : ReadOnlyBase
{
private static int _forceInit;

public static readonly PropertyInfo ActiveProperty =
RegisterProperty(new PropertyInfo("Active", "Active"));

private static readonly PropertyInfo ClassProperty =
RegisterProperty(new PropertyInfo("Class", "Class"));

public static readonly PropertyInfo CreateDateProperty =
RegisterProperty(new PropertyInfo("CreateDate", "CreateDate"));

private static readonly PropertyInfo IdProperty =
RegisterProperty(new PropertyInfo("Id", "Id"));

public static readonly PropertyInfo UpdateDateProperty =
RegisterProperty(new PropertyInfo("UpdateDate", "UpdateDate"));

public BusObjectInfo(BusObjectDTO pBusobjectDTO)
{
LoadProperty(ClassProperty, pBusobjectDTO.Class);
LoadProperty(IdProperty, pBusobjectDTO.Id);
LoadProperty(CreateDateProperty, pBusobjectDTO.CreateDate);
LoadProperty(UpdateDateProperty, pBusobjectDTO.UpdateDate);
LoadProperty(ActiveProperty, pBusobjectDTO.Active);
}

protected BusObjectInfo()
{
// 08/01/2009 this is needed else you get errors like
// csla one or more properties are not registered for this type
_forceInit = 0;
}

protected override void OnDeserialized(StreamingContext context)
{
// 08/01/2009 this is needed else you get errors like
// csla one or more properties are not registered for this type
_forceInit = 0;
base.OnDeserialized(context);
}

public string Class
{
get { return GetProperty(ClassProperty); }
}

public string Id
{
get { return GetProperty(IdProperty); }
}

public DateTime CreateDate
{
get { return GetProperty(CreateDateProperty); }
}

public DateTime UpdateDate
{
get { return GetProperty(UpdateDateProperty); }
}

public Boolean Active
{
get { return GetProperty(ActiveProperty); }
}
}
}

// CountryInfo
using System;
using System.Runtime.Serialization;
using Csla;

namespace SKN.Library
{
[Serializable]
public class CountryInfo : BusObjectInfo//ReadOnlyBase
{
private static readonly PropertyInfo CountryIdProperty =
RegisterProperty(new PropertyInfo("CountryId", "CountryId"));

private static readonly PropertyInfo NameProperty =
RegisterProperty(new PropertyInfo("Name", "Name"));

public CountryInfo(BusObjectDTO pBusobjectDTO) : base(pBusobjectDTO)
{
LoadProperty(CountryIdProperty, pBusobjectDTO.Id);
LoadProperty(NameProperty, ((CountryDTO)pBusobjectDTO).Name);
}

public string CountryId
{
get { return GetProperty(CountryIdProperty); }
}

public string Name
{
get { return GetProperty(NameProperty); }
}

protected override object GetIdValue()
{
return CountryIdProperty;
}

public override string ToString()
{
return NameProperty.ToString();
}
}
}

// Country DTO
using System;
using System.Runtime.Serialization;
using Csla;

namespace SKN.Library
{
[DataContract(Namespace = Namespaces.SKN, Name = "CountryDTO")]
[Serializable]
public class CountryDTO : BusObjectDTO
{
public CountryDTO(string pClass, string pId, SmartDate pCreateDate, SmartDate pUpdateDate, bool pActive,
string pCountryId, string pName) : base(pClass, pId, pCreateDate, pUpdateDate, pActive)
{
CountryId = pCountryId;
Name = pName;
}

[DataMember(Order = 20)]
public string CountryId { get; set; }

[DataMember(Order = 21)]
public string Name { get; set; }
}
}

// CountryInfoList
using System;
using System.Runtime.Serialization;
using Csla;
using Csla.Server;
using DataPortal = Csla.DataPortal;

namespace SKN.Library
{
[ObjectFactory("SKN.ObjectFactory.CountryListFactory, SKN.ObjectFactory")]
//[DataContract(Namespace = Namespaces.SKN, Name = "CountryInfoList")]
[Serializable]
public class CountryInfoList : ReadOnlyListBase
{
public void LoadData(CountryInfoDTOList pCountryListDTO)
{
RaiseListChangedEvents = false;
IsReadOnly = false;
foreach (CountryDTO countryDTO in pCountryListDTO)
{
Add(new CountryInfo(countryDTO));
}
IsReadOnly = true;
RaiseListChangedEvents = true;
}

public static CountryInfoList GetAllCountries()
{
return DataPortal.Fetch();
}

public static CountryInfoList GetCountriesByName(SingleCriteria pName)//string name)
{
return DataPortal.Fetch(pName);//new SingleCriteria(name));
}
}
}

// CountryInfoDTO
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace SKN.Library
{
[Serializable]
public class CountryInfoDTOList : List
{
public CountryInfoDTOList()
{
}

public CountryInfoDTOList(IEnumerable collection) : base(collection)
{
}
}
}

// county DAL
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using Csla.Data;
using Natural.EL;
using SKN.DAL;
using SKN.Library;

namespace Natural.EAL
{
[Serializable]
public class CountryEAL : ICountryDAL
{
#region ICountryDAL Members

public CountryInfoDTOList GetAllCountries()
{
using (ObjectContextManager ctx =
ObjectContextManager.GetManager("NaturalEntities"))
{
IQueryable countries = from p in ctx.ObjectContext.Land
orderby p.Basic.Naam
select p;

return LoadCountryList(countries); //customerListDTO;
}
}

#endregion

private static CountryInfoDTOList LoadCountryList(IQueryable pCountries)
{
var countryInfoDTOList = new CountryInfoDTOList();
foreach (Land c in pCountries)
{
//c.GemeenteReference.Load();
//c.Gemeente.BasicReference.Load();
//c.Gemeente.LandReference.Load();
//c.Gemeente.Land.BasicReference.Load();
if (!c.BasicReference.IsLoaded)
c.BasicReference.Load();
//bool active = (c.aktief.ToUpper().Trim() == "TRUE");
countryInfoDTOList.Add(
new CountryDTO(
c.Class,
c.Id,
c.Basic.CreateDate,
c.Basic.UpdateDate,
true,
c.Id,
c.Basic.Naam));
}
return countryInfoDTOList;
}
}
}

I got the same for Customer what could be going wrong ?
I am a newbie and testing CSLA, I hope this is a bit clear.

Is this a good way of working ?

Thx

koen@skn.be replied on Thursday, January 08, 2009

Ok, but when do the GetCustomers first and then the GetCountries everything works fine ?

sergeyb replied on Thursday, January 08, 2009

Puzzle. I would just put a breakpoint in and see what is breaking.

Sergey Barskiy
Principal Consultant
office: 678.405.0687 | mobile: 404.388.1899

Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation


-----Original Message-----
From: koen@skn.be [mailto:cslanet@lhotka.net]
Sent: Thursday, January 08, 2009 1:27 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: DataPortal.Fetch failed (Property load or set failed for property PostalCode

Ok, but when do the GetCustomers first and then the GetCountries everything works fine ?

ajj3085 replied on Thursday, January 08, 2009

Does he need the _forceInit trick his Country class?

koen@skn.be replied on Friday, January 09, 2009

The forceinit is needed see
http://forums.lhotka.net/forums/thread/28883.aspx

The app breakse when reaching the constructor of CustomerInfo where its trying to do

LoadProperty(PostalCodeProperty, ((CustomerDTO) pBusobjectDTO).PostalCode);

The pBusobjectDTO is containing the correct info and the postalcode is a string?

But as I said only when first getting the countries and after that getting the customers ?? When gettiing the customers first everything works fine ??

koen@skn.be replied on Friday, January 09, 2009

I did some further debugging and find out that it is actually in the constructor of the busobjectinfo so I changed all the properties to string (in busobjectinfo and customerinfo) and now the app does no longer crash but in my updatedate property i do not have the date but the postalcode instead in createdate i have the id and ...?

public BusObjectInfo(BusObjectDTO pBusobjectDTO)
{
LoadProperty(ClassProperty, pBusobjectDTO.Class);
LoadProperty(IdProperty, pBusobjectDTO.Id);
LoadProperty(CreateDateProperty, pBusobjectDTO.CreateDate);
LoadProperty(UpdateDateProperty, pBusobjectDTO.UpdateDate);
LoadProperty(ActiveProperty, pBusobjectDTO.Active);
}

when doing the LoadProperty(CreateDateProperty, pBusobjectDTO.CreateDate);

ajj3085 replied on Friday, January 09, 2009

I'm not sure you should be doing LoadProperty calls in your constructor.  Those probably belong in a Child_Fetch or DataPortal_Fetch operation.. or a separate method called by one of those if this is one the base class.

Copyright (c) Marimer LLC