Ejemplo n.º 1
0
        public virtual void Set <T>(String kind, T value)
        {
            NodeFacet found = this[kind];

            if (found != null)
            {
                //Update
                found.ClrValue = value;
            }
            else
            {
                //Add (if doesn't exist)
                this.Add(new NodeFacet(kind, Clr.Value(value)));
            }
        }
Ejemplo n.º 2
0
 public static NodeFacet AbstractType()
 {
     return(new NodeFacet(FacetKind.AbstractType, Clr.Value(true)));
 }
Ejemplo n.º 3
0
 public static NodeFacet FixedLength(bool isfixedLength)
 {
     return(new NodeFacet(FacetKind.FixedLength, Clr.Value(isfixedLength)));
 }
Ejemplo n.º 4
0
 public static NodeFacet Scale(int value)
 {
     return(new NodeFacet(FacetKind.Scale, Clr.Value(value)));
 }
Ejemplo n.º 5
0
 public static NodeFacet Precision(int value)
 {
     return(new NodeFacet(FacetKind.Precision, Clr.Value(value)));
 }
Ejemplo n.º 6
0
 public static NodeFacet MaxSize(int value)
 {
     return(new NodeFacet(FacetKind.MaxSize, Clr.Value(value)));
 }
Ejemplo n.º 7
0
 public static NodeFacet TopLevelAccess(bool value)
 {
     return(new NodeFacet(FacetKind.TopLevelAccess, Clr.Value(value)));
 }
Ejemplo n.º 8
0
 public static NodeFacet MaxValue <T>(T value)
 {
     return(new NodeFacet(FacetKind.MaxValue, Clr.Value <T>(value)));
 }
Ejemplo n.º 9
0
 public static NodeFacet IsForeignKey(bool value)
 {
     return(new NodeFacet(FacetKind.IsForeignKey, Clr.Value(value)));
 }
Ejemplo n.º 10
0
 public static NodeFacet IsClrType(bool value)
 {
     return(new NodeFacet(FacetKind.IsClrType, Clr.Value(value)));
 }
Ejemplo n.º 11
0
 public static NodeFacet HasStream(bool value)
 {
     return(new NodeFacet(FacetKind.HasStream, Clr.Value(value)));
 }
Ejemplo n.º 12
0
 public static NodeFacet IsClrProperty(bool value)
 {
     return(new NodeFacet(FacetKind.IsClrProperty, Clr.Value(value)));
 }
Ejemplo n.º 13
0
 public static NodeFacet FriendlyFeeds(string value)
 {
     return(new NodeFacet(FacetKind.FriendlyFeeds, Clr.Value(value)));
 }
Ejemplo n.º 14
0
 public static NodeFacet CanonicalAccessPath(bool value)
 {
     return(new NodeFacet(FacetKind.CanonicalAccessPath, Clr.Value(value)));
 }
Ejemplo n.º 15
0
 public static NodeFacet Sortable(bool value)
 {
     return(new NodeFacet(FacetKind.Sortable, Clr.Value(value)));
 }
Ejemplo n.º 16
0
 public static NodeFacet ServerGenerated(bool value)
 {
     return(new NodeFacet(FacetKind.ServerGenerated, Clr.Value(value)));
 }
Ejemplo n.º 17
0
 public static NodeFacet IsStoreBlob(bool value)
 {
     return(new NodeFacet(FacetKind.IsStoreBlob, Clr.Value(value)));
 }
Ejemplo n.º 18
0
 public static NodeFacet IsIdentityKey(bool value)
 {
     return(new NodeFacet(FacetKind.IsIdentity, Clr.Value(value)));
 }