示例#1
0
        public override void SetValue(DBObjectInitializeType myDBObjectInitializeType)
        {
            switch (myDBObjectInitializeType)
            {
                case DBObjectInitializeType.Default:
                case DBObjectInitializeType.MinValue:
                case DBObjectInitializeType.MaxValue:
                default:
                    _Value = new EdgeKey();
                    break;
            }

            CalcEstimatedSize(this);
        }
示例#2
0
 public DBBackwardEdgeType(DBObjectInitializeType myDBObjectInitializeType)
 {
     SetValue(myDBObjectInitializeType);
 }
示例#3
0
文件: DBBoolean.cs 项目: ipbi/sones
 public override void SetValue(DBObjectInitializeType myDBObjectInitializeType)
 {
     switch (myDBObjectInitializeType)
     {
         case DBObjectInitializeType.Default:
             _Value = false;
             break;
         case DBObjectInitializeType.MinValue:
             _Value = false;
             break;
         case DBObjectInitializeType.MaxValue:
             _Value = true;
             break;
         default:
             _Value = false;
             break;
     }
 }
示例#4
0
文件: DBBoolean.cs 项目: ipbi/sones
 public DBBoolean(DBObjectInitializeType myDBObjectInitializeType)
 {
     SetValue(myDBObjectInitializeType);
 }
示例#5
0
文件: DBNumber.cs 项目: ipbi/sones
 public override void SetValue(DBObjectInitializeType myDBObjectInitializeType)
 {
     switch (myDBObjectInitializeType)
     {
         case DBObjectInitializeType.Default:
         case DBObjectInitializeType.MinValue:
         case DBObjectInitializeType.MaxValue:
         default:
             _Value = 0;
             break;
     }
 }
示例#6
0
        public DBObjectRevisionID(DBObjectInitializeType myDBObjectInitializeType)
        {
            SetValue(myDBObjectInitializeType);

            //DO NOT ESTIMATE THE SIZE!!! it's done in SetValue(...)
        }
示例#7
0
文件: DBVertex.cs 项目: ipbi/sones
 public override void SetValue(DBObjectInitializeType myDBObjectInitializeType)
 {
     switch (myDBObjectInitializeType)
     {
         case DBObjectInitializeType.Default:
             _Value = new ObjectUUID(0);
             break;
         case DBObjectInitializeType.MinValue:
             _Value = new ObjectUUID(0);
             break;
         case DBObjectInitializeType.MaxValue:
             _Value = new ObjectUUID();
             break;
         default:
             _Value = new ObjectUUID(0);
             break;
     }
 }
示例#8
0
        public override void SetValue(DBObjectInitializeType myDBObjectInitializeType)
        {
            switch (myDBObjectInitializeType)
            {
                case DBObjectInitializeType.Default:
                    _Value = TimestampNonce.Now;
                    break;
                case DBObjectInitializeType.MinValue:
                    _Value = DateTime.MinValue;
                    break;
                case DBObjectInitializeType.MaxValue:
                    _Value = DateTime.MaxValue;
                    break;
                default:
                    _Value = TimestampNonce.Now;
                    break;
            }

            CalcEstimatedSize(this);
        }
示例#9
0
        public DBBaseObject(DBObjectInitializeType DBObjectInitializeType)
        {
            SetValue(DBObjectInitializeType);

            //DO NOT ESTIMATE THE SIZE!!! it's done in SetValue(...)
        }
示例#10
0
 public abstract void SetValue(DBObjectInitializeType myDBObjectInitializeType);
示例#11
0
        public override void SetValue(DBObjectInitializeType DBObjectInitializeType)
        {
            switch (DBObjectInitializeType)
            {
                case DBObjectInitializeType.Default:
                case DBObjectInitializeType.MinValue:
                case DBObjectInitializeType.MaxValue:
                default:
                    _Value = String.Empty;
                    break;
            }

            CalcEstimatedSize(this);
        }
示例#12
0
文件: DBReference.cs 项目: ipbi/sones
 public DBReference(DBObjectInitializeType myDBObjectInitializeType)
 {
     SetValue(myDBObjectInitializeType);
 }
示例#13
0
 public DBBaseObject(DBObjectInitializeType DBObjectInitializeType)
 {
     SetValue(DBObjectInitializeType);
 }
示例#14
0
文件: DBDateTime.cs 项目: ipbi/sones
 public DBDateTime(DBObjectInitializeType myDBObjectInitializeType)
 {
     SetValue(myDBObjectInitializeType);
 }
示例#15
0
文件: DBVertex.cs 项目: ipbi/sones
 public DBVertex(DBObjectInitializeType myDBObjectInitializeType)
 {
     SetValue(myDBObjectInitializeType);
 }
示例#16
0
文件: DBType.cs 项目: ipbi/sones
 public DBType(DBObjectInitializeType myDBObjectInitializeType)
 {
     SetValue(myDBObjectInitializeType);
 }
示例#17
0
文件: DBUInt64.cs 项目: TheByte/sones
 public DBUInt64(DBObjectInitializeType myDBObjectInitializeType)
 {
     SetValue(myDBObjectInitializeType);
 }
示例#18
0
        public DBDateTime(DBObjectInitializeType myDBObjectInitializeType)
        {
            SetValue(myDBObjectInitializeType);

            //DO NOT ESTIMATE THE SIZE!!! it's done in SetValue(...)
        }
示例#19
0
 public DBObjectRevisionID(DBObjectInitializeType myDBObjectInitializeType)
 {
     SetValue(myDBObjectInitializeType);
 }
示例#20
0
文件: DBNumber.cs 项目: ipbi/sones
 public DBNumber(DBObjectInitializeType myDBObjectInitializeType)
 {
     SetValue(myDBObjectInitializeType);
 }
示例#21
0
文件: DBString.cs 项目: ipbi/sones
 public DBString(DBObjectInitializeType myDBObjectInitializeType)
 {
     SetValue(myDBObjectInitializeType);
 }