コード例 #1
0
        internal void Check(Object v1, Object v2, String name)
        {
            if (v1 == null && v2 == null)
            {
                return;
            }
            if (Object.Equals(v1, v2))
            {
                return;
            }
            var msg = "Metadata mismatch - values do not match between server and client for " + FormatName() + " Metadata property: " + name;

            MetadataStore.AddMessage(msg, MessageType.Error, true);
        }
コード例 #2
0
        internal void Check(Object v1, Object v2, String name)
        {
            if (v1 == null && v2 == null)
            {
                return;
            }
            if (Object.Equals(v1, v2))
            {
                return;
            }
            var msg = String.Format("EntityType metadata mismatch. EntityType: '{0}'.  Metadata property: '{1}'.  Client value: '{2}',  Server value: '{3}'",
                                    this.Name, name, (v1 ?? "").ToString(), (v2 ?? "").ToString());

            MetadataStore.AddMessage(msg, MessageType.Error);
        }