CSLA 3.6.1 ReadOnlyChild

CSLA 3.6.1 ReadOnlyChild

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


rob.polak posted on Monday, March 02, 2009

Okay,  I am not sure what I am missing, but if I am working with a ReadOnlyChild and the Getter looks something like :

        private static PropertyInfo<int> NameProperty = RegisterProperty(new PropertyInfo<int>("Name", "Name"));
        public int Name
        {
            get { return GetProperty(NameProperty); }
        }

How do I load this object from the database?  SetProperty is not available..

ajj3085 replied on Monday, March 02, 2009

use loadproperty.

Copyright (c) Marimer LLC