CSLA 4 - IsSelfBusy property in BusinessBase missing [Display(AutoGenerateField = false)]

CSLA 4 - IsSelfBusy property in BusinessBase missing [Display(AutoGenerateField = false)]

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


Ranjini posted on Thursday, May 13, 2010

I am using CSLA 4 and binding a datagrid to BusinessListBase -> BusinessBase and the "IsSelfBusy" property is getting displayed if i set the AutoGenerateColumns= true. I tried to trace it back and it seems like the BusinessBase class in the framework is missing the DataAnnotation attribute - [Display(AutoGenerateField = false)] on the IsSelfBusy property.

……………………………….

 [Browsable(false)]

        [Display(AutoGenerateField = false)]

        public virtual bool IsDirty { get; }

        [Display(AutoGenerateField = false)]

        [Browsable(false)]

        public bool IsNew { get; }

        [Browsable(false)]

        [Display(AutoGenerateField = false)]

        public virtual bool IsSavable { get; }

         [Browsable(false)]

 //missing  [Display(AutoGenerateField = false)]

        public bool IsSelfBusy { get; }

        [Display(AutoGenerateField = false)]

        [Browsable(false)]

        public virtual bool IsSelfDirty { get; }

        [Browsable(false)]

        [Display(AutoGenerateField = false)]

        public virtual bool IsSelfValid { get; }

……………………………….

I think this is a bug, but please correct me if I am wrong

Thanks

Ranjini

 

RockfordLhotka replied on Friday, May 14, 2010

Sounds like a bug - thanks for helping to find it.

Copyright (c) Marimer LLC