Permalink
Browse files

PostgreSQLMetadata.cs: Clean indentation.

  • Loading branch information...
1 parent 9853e41 commit d250864fa9f6621c681096cc09d0e9a5bfb8f295 @oskarb oskarb committed Feb 18, 2012
Showing with 18 additions and 15 deletions.
  1. +18 −15 src/NHibernate/Dialect/Schema/PostgreSQLMetadata.cs
@@ -7,27 +7,27 @@ namespace NHibernate.Dialect.Schema
{
public class PostgreSQLDataBaseMetadata : AbstractDataBaseSchema
{
- public PostgreSQLDataBaseMetadata(DbConnection connection) : base(connection) {}
+ public PostgreSQLDataBaseMetadata(DbConnection connection) : base(connection) { }
public override ITableMetadata GetTableMetadata(DataRow rs, bool extras)
{
return new PostgreSQLTableMetadata(rs, this, extras);
}
- public override bool StoresMixedCaseQuotedIdentifiers
- {
- get { return false; }
- }
+ public override bool StoresMixedCaseQuotedIdentifiers
+ {
+ get { return false; }
+ }
- public override bool StoresLowerCaseIdentifiers
- {
- get { return true; }
- }
+ public override bool StoresLowerCaseIdentifiers
+ {
+ get { return true; }
+ }
}
public class PostgreSQLTableMetadata : AbstractTableMetadata
{
- public PostgreSQLTableMetadata(DataRow rs, IDataBaseSchema meta, bool extras) : base(rs, meta, extras) {}
+ public PostgreSQLTableMetadata(DataRow rs, IDataBaseSchema meta, bool extras) : base(rs, meta, extras) { }
protected override IColumnMetadata GetColumnMetadata(DataRow rs)
{
@@ -41,7 +41,7 @@ protected override string GetColumnName(DataRow rs)
protected override string GetConstraintName(DataRow rs)
{
- return Convert.ToString(rs["CONSTRAINT_NAME"]);
+ return Convert.ToString(rs["CONSTRAINT_NAME"]);
}
protected override IForeignKeyMetadata GetForeignKeyMetadata(DataRow rs)
@@ -77,10 +77,11 @@ protected override void ParseTableInfo(DataRow rs)
public class PostgreSQLColumnMetadata : AbstractColumnMetaData
{
- public PostgreSQLColumnMetadata(DataRow rs) : base(rs)
+ public PostgreSQLColumnMetadata(DataRow rs)
+ : base(rs)
{
Name = Convert.ToString(rs["COLUMN_NAME"]);
-
+
this.SetColumnSize(rs["CHARACTER_MAXIMUM_LENGTH"]);
this.SetNumericalPrecision(rs["NUMERIC_PRECISION"]);
@@ -91,15 +92,17 @@ public PostgreSQLColumnMetadata(DataRow rs) : base(rs)
public class PostgreSQLIndexMetadata : AbstractIndexMetadata
{
- public PostgreSQLIndexMetadata(DataRow rs) : base(rs)
+ public PostgreSQLIndexMetadata(DataRow rs)
+ : base(rs)
{
Name = Convert.ToString(rs["INDEX_NAME"]);
}
}
public class PostgreSQLForeignKeyMetadata : AbstractForeignKeyMetadata
{
- public PostgreSQLForeignKeyMetadata(DataRow rs) : base(rs)
+ public PostgreSQLForeignKeyMetadata(DataRow rs)
+ : base(rs)
{
Name = Convert.ToString(rs["CONSTRAINT_NAME"]);
}

0 comments on commit d250864

Please sign in to comment.