Compatibility with Postgresql 9.4
This commit is contained in:
parent
b39a444cf0
commit
454ff5b3ed
1 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ namespace Yavsc.Model.RolesAndMembers
|
||||||
public Profile (ProfileBase profile)
|
public Profile (ProfileBase profile)
|
||||||
{
|
{
|
||||||
object b = profile.GetPropertyValue ("BlogVisible");
|
object b = profile.GetPropertyValue ("BlogVisible");
|
||||||
BlogVisible = (b == null) ? true : (bool)b;
|
BlogVisible = (b == null) ? true : (b is DBNull)? true : (bool)b;
|
||||||
|
|
||||||
object s = profile.GetPropertyValue ("BlogTitle");
|
object s = profile.GetPropertyValue ("BlogTitle");
|
||||||
BlogTitle = (s is DBNull) ? null : (string)s;
|
BlogTitle = (s is DBNull) ? null : (string)s;
|
||||||
|
|
@ -152,7 +152,7 @@ namespace Yavsc.Model.RolesAndMembers
|
||||||
this.AccountNumber = (s is DBNull) ? null : (string)s;
|
this.AccountNumber = (s is DBNull) ? null : (string)s;
|
||||||
|
|
||||||
s = profile.GetPropertyValue ("BankedKey");
|
s = profile.GetPropertyValue ("BankedKey");
|
||||||
BankedKey = (s == null) ? 0 : (int)s;
|
BankedKey = (s == null) ? 0 : (s is DBNull)? 0 : (int)s;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue