public override IEnumerable <Block> ExtraDatabaseStatements(Version currentModelVersion) { // Create an extra Block for the current version to add extra permissions to runtime user. var newBlock = new Block(); newBlock.SetTagValue(Tag.END_IGNORING_BLOCK.ToString(), ""); string runtimeuser = ((PlatformDatabaseConfiguration)uiConfiguration).RuntimeUser; ConfigurationManagerUtils.GetGrantRuntimePermissionsStatements(runtimeuser).Apply(statement => newBlock.AddStatement(statement)); GetGrantPlatformPermissionsStatements(runtimeuser).Apply(statement => newBlock.AddStatement(statement)); yield return(newBlock); }