when SlotSahibiKumpanyaId is null
runtime exception
if(denizKonsimentosu.Rows.Count > 0)konsimentoListeleResponse.SlotSahibiKumpanyaId =
denizKonsimentosu.AsEnumerable()
.Where(p => (p.Field<long?>("SlotSahibiKumpanyaId").ToLong() > 0)). Select(p => (p.Field<long?>("SlotSahibiKumpanyaId")).ToLong()).First();
if(denizKonsimentosu.Rows.Count > 0)konsimentoListeleResponse.SlotSahibiKumpanyaId =
denizKonsimentosu.AsEnumerable()
.Where(p => (p.Field<long?>("SlotSahibiKumpanyaId").ToLong() > 0)). Select(p => (p.Field<long?>("SlotSahibiKumpanyaId")).ToLong()).FirstOrDefault();
Orijinal gönderi : Pınar Kılınç
Hiç yorum yok:
Yorum Gönder