Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected override void Seed(Models.DataModels.VenContext context)
- {
- context.Persons.AddOrUpdate(
- p => p.PersonId,
- new Person("Jorja Tal", "Wolf") {PersonId = 1},
- new Person("Gryndil Jalan", "Serpent") {PersonId = 2},
- new Person("Tzao Tal", "Wolf") {PersonId = 3});
- context.SaveChanges();
- context.Aspects.AddOrUpdate(
- a => a.AspectId,
- new Aspect
- {
- AspectId = 1,
- Name = "Cataloger of Artifacts",
- Invoke = "I am excellent at recognizing artifacts from the sorcerer-kings.",
- Tag = "My collection is always on my mind and any threat to it angers me or mention of it distracts me.",
- Compel = "I want to collect artifacts and will ditch other plans to do so."
- },
- new Aspect
- {
- AspectId = 2,
- Name = "Have we met?",
- Invoke = "It's easy to get around when you never go out. Gain three bonus dice when trying to hide your identity from someone.",
- Tag = "You are uncomfortable in “civilized” situations and when you really should know someone's name.",
- Compel = "You get uncomfortable in large groupings. You often find that you need to \"go get some air.\""
- },
- new Aspect
- {
- AspectId = 3,
- Name = "Adrente (Wolf)",
- Invoke = "Add Two bonus dice to any risk involving direct and physical conflict.",
- Tag = "None",
- Compel = "You can be compelled to defend your honor."
- }
- );
- context.SaveChanges();
- context.Families.AddOrUpdate(
- f => f.FamilyId,
- new Family
- {
- FamilyId = 1,
- Name = "Tal",
- Standing = "Baron",
- Father = context.Persons.Find(1),
- Mother = context.Persons.Find(2),
- Children = new List<Person> {context.Persons.Find(3)}
- }
- );
- context.SaveChanges();
- context.Devotions.AddOrUpdate(
- d => d.DevotionId,
- new Devotion {Name = "Ashalim Avendi", Rank = 2},
- new Devotion {Name = "Falvren Dyr", Rank = 1}
- );
- context.SaveChanges();
- context.Ven.AddOrUpdate(
- ven => ven.Name,
- new Ven {
- VenId = 5,
- Name = "Nallia Tal",
- Attributes = new Attributes(0, 2, 3, 2, 4, 4),
- House = "Wolf",
- Family = context.Families.Find(1),
- Devotions = new List<Devotion> { context.Devotions.Find(1), context.Devotions.Find(2) },
- StylePoints = 3,
- Aspects = new List<Aspect> { context.Aspects.Find(1), context.Aspects.Find(2), context.Aspects.Find(3) },
- Contacts = new List<Contact> {new Contact {Name = "Davan"}},
- Items = new List<Item> {
- new Item {Name = "Brooch of Swiftness", Rank = 1},
- new Item {Name = "Subtle Dagger", Rank = 1}},
- Rituals = new List<Ritual> {new Ritual {Name ="The Quill"}, new Ritual { Name = "The Rose"}},
- Domain = new List<Location>
- {
- new Location{ Name = "Varault", Type = "Castle"},
- new Location{ Name = "Varon", Type = "Village"},
- new Location{ Name = "Hollow Hill", Type = "Farm"},
- new Location{ Name = "Ansfeld", Type = "Ruin", Rank = 2},
- new Location{ Name = "The Mire", Type = "Swamp"}
- },
- Vassals = new List<Vassal>
- {
- new Vassal{ Name = "Staff", Rank = 1},
- new Vassal{ Name = "Apothecary", Rank = 1},
- new Vassal{ Name = "Roadmen", Rank = 2},
- new Vassal{ Name = "Maid", Rank = 1}
- }
- }
- );
- context.SaveChanges();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement