Skip to content

GetRegisteredProperties and Inheritance #4180

Discussion options

You must be logged in to vote

I can't reproduce your issue.

I get this result:

Id
Name

From this code:

using Csla;
using Csla.Configuration;
using Csla.Core;
using Microsoft.Extensions.DependencyInjection;
using MyCode;

var services = new ServiceCollection();
services.AddCsla();
var serviceProvider = services.BuildServiceProvider();

var portal = serviceProvider.GetRequiredService<IDataPortal<PersonEdit>>();
var person = await portal.FetchAsync(123);
foreach (var property in person.GetRegisteredProperties())
{
    Console.WriteLine(property.Name);
}

namespace MyCode
{
    [Serializable]
    public class MyBusinessBase<T> : BusinessBase<T>
      where T : MyBusinessBase<T>
    {
        public static readonly Proper…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Chicagoan2016
Comment options

Answer selected by Chicagoan2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants