src/Misc/EFTools/EntityDesignEntityDesigner/CustomCode/DomainClasses/EntityTypeBase.cs
/// <summary>
///     Walks entity properties and returns a comma-separated string with key property names
/// </summary>
/// <param name="separator"></param>
/// <returns></returns>
Walks entity properties and returns a comma-separated string with key property names
Walks entity properties and returns a comma - separated string with key property names
public string GetKeyNamesSeparatedBy(string separator)
        {
            var separatedKeys = String.Empty;
            try
            {
                var keyList = new List<String>();
                foreach (var property in GetKeyProperties())
                {
                    keyList.Add(property.Name);
                }
                separatedKeys = String.Join(separator, keyList.ToArray());
            }
            catch (InvalidOperationException)
            {
            }
            return separatedKeys;
        }
public string GetKeyNamesSeparatedBy ( string separator ) { var separatedKeys = String . Empty ; try { var keyList = new List < String > ( ) ; foreach ( var property in GetKeyProperties ( ) ) { keyList . Add ( property . Name ) ; } separatedKeys = String . Join ( separator , keyList . ToArray ( ) ) ; } catch ( InvalidOperationException ) { } return separatedKeys ; }
Walks entity properties and returns a comma-separated string with key property names
Walks entity properties and returns a comma - separated string with key property names
// Detected circular inheritance, nothing to do!
None
separator
string
None