0 people like it.

Test

1: 
2: 
3: 
4: 
5: 
6: 
7: 
type EntityLevel = { 
    Name:string;                  // Current entity name
    Count:int;                    // number of entities to create at this level
    Values:(string * string) list;        
    RelationshipName:string;      // name of the relationship from this entity to its parent (if applicable)
    Relations : EntityLevel list; // All children
}
EntityLevel.Name: string
Multiple items
val string : value:'T -> string

Full name: Microsoft.FSharp.Core.Operators.string

--------------------
type string = System.String

Full name: Microsoft.FSharp.Core.string
EntityLevel.Count: int
Multiple items
val int : value:'T -> int (requires member op_Explicit)

Full name: Microsoft.FSharp.Core.Operators.int

--------------------
type int = int32

Full name: Microsoft.FSharp.Core.int

--------------------
type int<'Measure> = int

Full name: Microsoft.FSharp.Core.int<_>
EntityLevel.Values: (string * string) list
type 'T list = List<'T>

Full name: Microsoft.FSharp.Collections.list<_>
EntityLevel.RelationshipName: string
EntityLevel.Relations: EntityLevel list
type EntityLevel =
  {Name: string;
   Count: int;
   Values: (string * string) list;
   RelationshipName: string;
   Relations: EntityLevel list;}

Full name: Script.EntityLevel
Raw view Test code New version

More information

Link:http://fssnip.net/8n
Posted:14 years ago
Author:
Tags: