回答編集履歴
2
セミコロン
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
```csharp
|
2
2
|
|
3
|
-
command.Parameters.Add(new SqlParameter("@birthday", (new [] {year, month, day}).All(string.IsNullOrEmpty) ?
|
3
|
+
command.Parameters.Add(new SqlParameter("@birthday", (new [] {year, month, day}).All(string.IsNullOrEmpty) ? (object)DBNull.Value : (object
|
4
4
|
|
5
5
|
)DateTime.Parse(year + "/" + month + "/" + day)));
|
6
6
|
|
1
あ
test
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
```csharp
|
2
2
|
|
3
|
-
command.Parameters.Add(new SqlParameter("@birthday", (new [] {year, month, day}).All(string.IsNullOrEmpty) ? DBNull.Value :
|
3
|
+
command.Parameters.Add(new SqlParameter("@birthday", (new [] {year, month, day}).All(string.IsNullOrEmpty) ? ,,(object)DBNull.Value : (object
|
4
|
+
|
5
|
+
)DateTime.Parse(year + "/" + month + "/" + day)));
|
4
6
|
|
5
7
|
```
|