csla icon indicating copy to clipboard operation
csla copied to clipboard

DataMapper should have a way to ignore metastate properties

Open rockfordlhotka opened this issue 6 years ago • 1 comments

Is your feature request related to a problem? Please describe. Right now it can be difficult to use DataMapper to copy values from a BusinessBase type to a DAL type, because it attempts to automatically copy the metastate properties. The result is that you need something like this:

DataMapper.Map(this, data, new string[] { "Parent", "BrokenRulesCollection", "IsValid", "IsSelfValid", "IsNew", "IsDirty", "IsDeleted", "IsSelfDirty", "IsBusy", "IsSelfBusy", "IsSavable", "IsChild" });

Describe the solution you'd like There should be some simpler way to tell DataMapper to ignore metastate properties without having to manually list them.

rockfordlhotka avatar Jun 22 '18 03:06 rockfordlhotka

Rocky, I'm using AutoMapper by Jimmy Bogard to map to and from my DAL to CSLA. It works pretty well and ignores the metastate information. It might be something to consider.

kcabral817 avatar Apr 02 '19 20:04 kcabral817

Closing due to lack of interest.

rockfordlhotka avatar Dec 27 '23 17:12 rockfordlhotka