Skip to content

Commit 24eca97

Browse files
committed
Merge branch 'master' into feature/1.3.3
2 parents c351eed + 3c3e648 commit 24eca97

File tree

10 files changed

+1278
-1437
lines changed

10 files changed

+1278
-1437
lines changed

Castle.DynamicLinqQueryBuilder.Example/Sample/PersonBuilder.cs

Lines changed: 901 additions & 1202 deletions
Large diffs are not rendered by default.

Castle.DynamicLinqQueryBuilder.Example/Sample/PersonRecord.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ public class PersonRecord
66
{
77
public string FirstName { get; set; }
88
public string LastName { get; set; }
9-
public int Age { get; set; }
109
public DateTime Birthday { get; set; }
1110
public string Address { get; set; }
1211
public string City { get; set; }
1312
public string State { get; set; }
1413
public string ZipCode { get; set; }
14+
public bool Deceased { get; set; }
1515

1616
}
1717
}

Castle.DynamicLinqQueryBuilder.Example/Views/Home/Index.cshtml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,17 @@
9090
});
9191
buildTable = function() {
9292
var tbody = $('#data-table tbody'),
93-
props = ["firstName", "lastName", "birthday", "age", "address", "city", "state", "zipCode"];
93+
props = ["firstName", "lastName", "birthday", "deceased", "address", "city", "state", "zipCode"];
9494
tbody.empty();
9595
$.each(tableData, function(i, reservation) {
9696
var tr = $('<tr>');
97-
$.each(props, function(i, prop) {
98-
$('<td>').html(reservation[prop]).appendTo(tr);
99-
});
97+
$.each(props, function (i, prop) {
98+
var value = reservation[prop];
99+
if (typeof value === "boolean") {
100+
value = String(value); // Convert boolean to string
101+
}
102+
$('<td>').html(value).appendTo(tr);
103+
});
100104
tbody.append(tr);
101105
});
102106
};
@@ -128,7 +132,7 @@
128132
<th>First Name</th>
129133
<th>Last Name</th>
130134
<th>Birthday</th>
131-
<th>Age</th>
135+
<th>Deceased</th>
132136
<th>Address</th>
133137
<th>City</th>
134138
<th>State</th>

0 commit comments

Comments
 (0)