public static TableConstraintColumn CreateFromReader([NotNull] SqlDataReader reader) { Check.NotNull(reader, nameof(reader)); var tableConstraintColumn = new TableConstraintColumn(); tableConstraintColumn.Id = reader.IsDBNull(0) ? null : reader.GetString(0); tableConstraintColumn.ColumnId = reader.IsDBNull(1) ? null : reader.GetString(1); tableConstraintColumn.ConstraintId = reader.IsDBNull(2) ? null : reader.GetString(2); tableConstraintColumn.ConstraintType = reader.IsDBNull(3) ? null : reader.GetString(3); tableConstraintColumn.Ordinal = reader.GetInt32(4); return tableConstraintColumn; }
public static TableConstraintColumn CreateFromReader([NotNull] SqlDataReader reader) { Check.NotNull(reader, nameof(reader)); var tableConstraintColumn = new TableConstraintColumn(); tableConstraintColumn.Id = reader.IsDBNull(0) ? null : reader.GetString(0); tableConstraintColumn.ColumnId = reader.IsDBNull(1) ? null : reader.GetString(1); tableConstraintColumn.ConstraintId = reader.IsDBNull(2) ? null : reader.GetString(2); tableConstraintColumn.ConstraintType = reader.IsDBNull(3) ? null : reader.GetString(3); tableConstraintColumn.Ordinal = reader.GetInt32(4); return(tableConstraintColumn); }