예제 #1
0
        public override void Start()
        {
            bool isExisted = AttributeHelper.ExistsAttribute <StudentScore, RedisIndexAttribute>();

            DisplayMessage(string.Format("Class StudentScore has{0} RedisIndex attribute.", isExisted ? "" : " not"));

            isExisted = AttributeHelper.ExistsAttribute <StudentScore, NoDatabaseFieldAttribute>();
            DisplayMessage(string.Format("Class StudentScore has{0} NoDatabaseFieldAttribute attribute.", isExisted ? "" : " not"));

            isExisted = AttributeHelper.ExistsAttribute <RPublish_Relation, RelationTableAttribute>();
            DisplayMessage(string.Format("Class RPublish_Relation has{0} RelationTableAttribute attribute.", isExisted ? "" : " not"));
        }