public void ExcludeRemovesColumnFromGet() { var config = new MutableConfiguration(new System.Configuration.ConnectionStringSettings("Default", "", "System.Data.SqlClient")); config.AddNamespaceOf <Post>(); config.Setup <Post>().Property(p => p.Content).ExcludeByDefault(); var writer = new SelectWriter(new SqlServerDialect(), config); var sql = writer.GenerateGetSql <Post, int>(1); this.output.WriteLine(sql.Sql); Assert.Equal("select [PostId], [Title], [Rating], [AuthorId], [BlogId], [DoNotMap] from [Posts] where PostId = @Id", sql.Sql); }