예제 #1
0
파일: Model.cs 프로젝트: weimingtom/nshape
 /// <ToBeCompleted></ToBeCompleted>
 protected internal ModelObjectBase(ModelObjectBase source)
 {
     id = null;
     modelObjectType = source.Type;
     name            = modelObjectType.GetDefaultName();
     parent          = source.Parent;
 }
예제 #2
0
 /// <ToBeCompleted></ToBeCompleted>
 protected internal ModelObjectBase(ModelObjectBase source)
 {
     _id = null;
     _modelObjectType = source.Type;
     _name            = _modelObjectType.GetDefaultName();
     _parent          = source.Parent;
 }
예제 #3
0
파일: Model.cs 프로젝트: weimingtom/nshape
        /// <summary>
        /// Retrieves the persistable properties of <see cref="T:Dataweb.NShape.Advanced.GenericModelObject" />.
        /// </summary>
        new public static IEnumerable <EntityPropertyDefinition> GetPropertyDefinitions(int version)
        {
            foreach (EntityPropertyDefinition pi in ModelObjectBase.GetPropertyDefinitions(version))
            {
                yield return(pi);
            }
            yield return(new EntityFieldDefinition("IntegerValue", typeof(int)));

            yield return(new EntityFieldDefinition("FloatValue", typeof(float)));

            yield return(new EntityFieldDefinition("StringValue", typeof(string)));
        }