public override void UpdateDatabaseAfterUpdateSchema() { base.UpdateDatabaseAfterUpdateSchema(); DomainObject1 do1 = Session.FindObject<DomainObject1>(new BinaryOperator("Property1", "StartupObject")); if (do1 == null) { do1 = new DomainObject1(Session); do1.Property1 = "StartupObject"; do1.Save(); } }
public override void UpdateDatabaseAfterUpdateSchema() { base.UpdateDatabaseAfterUpdateSchema(); DomainObject1 do1 = Session.FindObject <DomainObject1>(new BinaryOperator("Property1", "StartupObject")); if (do1 == null) { do1 = new DomainObject1(Session); do1.Property1 = "StartupObject"; do1.Save(); } }