2013-11-24 9 views
6

इम करने के लिए डबल कनवर्ट नहीं कर सकताएफई कोई त्रुटि आ रही एक

QuoteID     uniqueidentifier Unchecked 
SubmissionDate   datetime Unchecked 
RfqID     uniqueidentifier Unchecked 
SupplierID     uniqueidentifier Unchecked 
SupplierRef nvarchar(50) Checked 
BomAmountExTax   decimal(18, 2) Unchecked 
BomAmountCurrencyID   int Unchecked 
BomAmountTaxRate   float Unchecked 
BomTaxAmount   decimal(18, 0) Unchecked 
FreightAmountExTax   decimal(18, 0) Unchecked 
FreightAmountCurrencyID int Unchecked 
FreightAmountTaxRate float Unchecked 
FreightTaxAmount   decimal(18, 0) Unchecked 
FreeFormParticulars   text Checked 
AvailabilityOpeningDate datetime Checked 
AvailabilityClosingDate datetime Checked 
Status     int Unchecked 
TransactionID uniqueidentifier Checked 
Quantity     int Unchecked 
LastModified datetime Unchecked 
ReviewedDate datetime Checked 
RevisionID     tinyint Checked 

और EoiQuote POCO इस प्रकार है:

public class EoiQuote 
    { 
     public Guid QuoteID { get; set; } 

     public DateTime SubmissionDate { get; set; } 

     public Guid RfqID { get; set; } 

     public Guid SupplierID { get; set; } 

     public string SupplierRef { get; set; } 

     public decimal BomAmountExTax { get; set; } 

     public int BomAmountCurrencyID { get; set; } 

     public float BomAmountTaxRate { get; set; } 

     public decimal BomTaxAmount { get; set; } 

     public decimal FreightAmountExTax { get; set; } 

     public int FreightAmountCurrencyID { get; set; } 

     public float FreightAmountTaxRate { get; set; } 

     public decimal FreightTaxAmount { get; set; } 

     public string FreeFormParticulars { get; set; } 

     public DateTime AvailabilityOpeningDate { get; set; } 

     public DateTime AvailabilityClosingDate { get; set; } 

     public int Status { get; set; } 

     public Guid TransactionID { get; set; } 

     public int Quantity { get; set; } 

     public DateTime LastModified { get; set; } 


     public EoiQuote() 
     { 
     } 

    } 

तो जैसा कि प्रति सामान्य ईएफ त्रुटि पूरी तरह से कोई समझ नहीं आता है। फ्लोट = फ्लोट: सही?

उत्तर

19

एसक्यूएल में एक फ्लोट .NET में एक फ्लोट के समान नहीं है। यदि आप एसक्लडबीटी टाइप गणना की तालिका देखते हैं तो आप पाएंगे कि एसक्यूएल फ्लोट डबल प्रकार के बराबर है।

Float->Double. A floating point number within the range of -1.79E +308 through 1.79E +308.

C# Reference से

:

नेट में, एक नाव System.Single प्रकार के लिए एक उपनाम है।

-3.4 × 1038 to +3.4 × 1038

संबंधित मुद्दे