Exemplo n.º 1
0
        public override string ToString()
        {
            if (EntityType != null && EntityType.IsLite())
            {
                throw new ArgumentException("RuntimeInfo's RuntimeType cannot be of type Lite. Use ExtractLite or construct a RuntimeInfo<T> instead");
            }

            return("{0};{1};{2};{3}".FormatWith(
                       Navigator.ResolveWebTypeName(EntityType),
                       IdOrNull?.ToString(),
                       IsNew ? "n" : "o",
                       Ticks
                       ));
        }
Exemplo n.º 2
0
        public override string ToString()
        {
            if (IdOrNull != null && IsNew)
            {
                throw new ArgumentException("Invalid RuntimeInfo parameters: IdOrNull={0} and IsNew=true".FormatWith(IdOrNull));
            }

            if (EntityType != null && EntityType.IsLite())
            {
                throw new ArgumentException("RuntimeInfo's RuntimeType cannot be of type Lite. Use ExtractLite or construct a RuntimeInfo<T> instead");
            }

            return("{0};{1};{2};{3}".FormatWith(
                       (EntityType == null) ? "" : TypeLogic.GetCleanName(EntityType),
                       IdOrNull?.ToString(),
                       IsNew ? "n" : "o",
                       Ticks
                       ));
        }