Esempio n. 1
0
 public void Map(ITypeMappingConfigurator<Planemo> map)
 {
     map.AsUriBaseType();
     map.AsChildResourceOf(x => x.PlanetarySystem, x => x.Planets);
     map.PostAllowed();
     map.DeleteAllowed();
 }
Esempio n. 2
0
 public void Map(ITypeMappingConfigurator <Planemo> map)
 {
     map.AsUriBaseType();
     map.AsChildResourceOf(x => x.PlanetarySystem, x => x.Planets);
     map.PostAllowed();
     map.DeleteAllowed();
 }
Esempio n. 3
0
 public void Map(ITypeMappingConfigurator<Planet> map)
 {
     map.AsUriBaseType();
     map.HasChildren(x => x.Moons,
         x => x.Planet,
         x => x.AsUriBaseType()
             .AsChildResourceOf(y => y.Planet, y => y.Moons)
             .ConstructedUsing(y => new Moon(y.Requires().Name, y.Parent<Planet>())), x => x);
     map.AsChildResourceOf(x => x.PlanetarySystem, x => x.Planets)
         .ConstructedUsing(x => new Planet(x.Requires().Name, x.Parent<PlanetarySystem>()))
         .Include(x => x.Moons, o => o.Writable());
 }
Esempio n. 4
0
 public void Map(ITypeMappingConfigurator<Star> map)
 {
     map.AsChildResourceOf(x => x.PlanetarySystem, x => x.Star);
 }
Esempio n. 5
0
 public void Map(ITypeMappingConfigurator <HandledSingleChild> map)
 {
     map.AsChildResourceOf(x => x.HandledThing, x => x.SingleChild);
 }
Esempio n. 6
0
 public void Map(ITypeMappingConfigurator<HandledSingleChild> map)
 {
     map.AsChildResourceOf(x => x.HandledThing, x => x.SingleChild);
 }
Esempio n. 7
0
 public void Map(ITypeMappingConfigurator<Animal> map)
 {
     map.AsUriBaseType();
     map.AsChildResourceOf(x => x.Owner, x => x.Animals);
     map.Exclude(x => x.Owner);
 }
Esempio n. 8
0
 public void Map(ITypeMappingConfigurator <Star> map)
 {
     map.AsChildResourceOf(x => x.PlanetarySystem, x => x.Star);
 }
Esempio n. 9
0
 public void Map(ITypeMappingConfigurator <Animal> map)
 {
     map.AsUriBaseType();
     map.AsChildResourceOf(x => x.Owner, x => x.Animals);
     map.Exclude(x => x.Owner);
 }