public virtual void GetLineByDataRow(DataRow dataRow, ref MatchLineNode matchLineNode) { if (dataRow != null) { matchLineNode.LineNodeID = dataRow["LineNodeID"] == System.DBNull.Value ? -1 : Convert.ToInt32(dataRow["LineNodeID"]); matchLineNode.OtherLineNodeID = dataRow["OtherLineNodeID"] == System.DBNull.Value ? -1 : Convert.ToInt32(dataRow["OtherLineNodeID"]); matchLineNode.PolygonID = dataRow["PolygonID"] == System.DBNull.Value ? -1 : Convert.ToInt32(dataRow["PolygonID"]); matchLineNode.OtherPolygonID = dataRow["OtherPolygonID"] == System.DBNull.Value ? -1 : Convert.ToInt32(dataRow["OtherPolygonID"]); matchLineNode.IsReverse = dataRow["IsReverse"] == System.DBNull.Value ? -1 : Convert.ToInt32(dataRow["IsReverse"]); matchLineNode.OtherIsReverse = dataRow["OtherIsReverse"] == System.DBNull.Value ? -1 : Convert.ToInt32(dataRow["OtherIsReverse"]); matchLineNode.EntityID = dataRow["EntityID"] == System.DBNull.Value ? -1 : Convert.ToInt32(dataRow["EntityID"]); matchLineNode.OtherEntityID = dataRow["OtherEntityID"] == System.DBNull.Value ? -1 : Convert.ToInt32(dataRow["OtherEntityID"]); matchLineNode.LineIndex = dataRow["LineIndex"] == System.DBNull.Value ? -1 : Convert.ToInt32(dataRow["LineIndex"]); matchLineNode.OtherLineIndex = dataRow["OtherLineIndex"] == System.DBNull.Value ? -1 : Convert.ToInt32(dataRow["OtherLineIndex"]); } }