コード例 #1
0
        /// <summary>
        /// Returns the entity's information as a string.
        /// </summary>
        /// <param name="entity">The instance of the entity.</param>
        /// <returns></returns>
        public static string GetContentInfo(this IEntityObjectIdentifier entity)
        {
            var content = new StringBuilder();

            if (entity != null)
            {
                content.Append(entity);
                content.Append(" (");

                ReflectionHelper.BuiltContentInfo(entity, content);

                content.Append(")");
            }
            else
            {
                content.Append("Entity is null");
            }

            return(content.ToString());
        }