Added DBNull check for the column "FkParentCatagoryId" before assigning as NULL values are allowed for it.