示例#1
0
        public SchemaVersion Index(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(null);
            }

            if (!SchemaVersionRepository.IsValidDatabaseName(id))
            {
                return(null);
            }

            try
            {
                return(repository.GetVersion(id));
            }
            catch (Exception exc)
            {
                ThrowIfLocalRequest(exc);
                return(null);
            }
        }
示例#2
0
 public SchemaVersionController()
 {
     this.repository = new SchemaVersionRepository(Settings.Default.ConnectionString);
 }