﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NBi.Core.Analysis.Metadata
{
    public class Property : IField
    {
        public string UniqueName { get; private set; }
        public string Caption { get; set; }

        public Property(string uniqueName, string caption)
        {
            UniqueName = uniqueName;
            Caption = caption;
        }

        public Property Clone()
        {
            return new Property(UniqueName, Caption);
        }
    }
}

﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NBi.Core.Analysis.Metadata
{
    public class Property : IField
    {
        public string UniqueName { get; private set; }
        public string Caption { get; set; }

        public Property(string uniqueName, string caption)
        {
            UniqueName = uniqueName;
            Caption = caption;
        }

        public Property Clone()
        {
            return new Property(UniqueName, Caption);
        }

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

    }
}

Add method ToString to override default display and replace by Caption
Add method ToString to override default display and replace by Caption
