Пример #1
0
        /// <summary>
        /// s_MetaData: static metadata
        /// </summary>
        /// <returns>AggregateMetaData</returns>
        private static AggregateMetaData s_MetaData()
        {
            if (initialized)
            {
                return(tm);
            }

            tm.AddVersion("v1.0.0");

            tm.AddField(0, "DeviceId", TypeEnum.StringType);
            tm.AddField(1, "MessageId", TypeEnum.StringType);
            tm.AddField(2, "When", TypeEnum.DoubleType);
            tm.AddField(3, "Condition", TypeEnum.Int32Type);

            tm.AddFieldMetaToAllVersions(0, FieldStateEnum.NotSet, "notset");
            tm.AddFieldMetaToAllVersions(1, FieldStateEnum.NotSet, "notset");
            tm.AddFieldMetaToAllVersions(2, FieldStateEnum.NotSet, "notset");
            tm.AddFieldMetaToAllVersions(3, FieldStateEnum.Default, " '2' ");



            initialized = true;

            return(tm);
        }
        /// <summary>
        /// s_MetaData: static metadata
        /// </summary>
        /// <returns>AggregateMetaData</returns>
        private static AggregateMetaData s_MetaData()
        {
            if (initialized)
            {
                return(tm);
            }

            tm.AddVersion("v1.0.0");

            tm.AddField(0, "DeviceId", TypeEnum.StringType);

            tm.AddFieldMetaToAllVersions(0, FieldStateEnum.NotSet, "notset");



            initialized = true;

            return(tm);
        }