मैं वर्तमान में एक ऐप बना रहा हूं जिसे एक एसक्लाइट डेटाबेस से डेटा स्टोर करने और प्राप्त करने की आवश्यकता है। वर्तमान में उपयोग किए जा रहे दो Nuget संकुल Sqlite PCL
और SQLite-Net Extensions
हैं।एसक्लाइट वन टू रिलेशनशिप
[Table("patient")]
public class Patient
{
[PrimaryKey]
public string ID { get; set;}
public string FirstName { get; set; }
public string LastName { get; set; }
[OneToMany]
public List<PatientVitals> PatientVitals { get; set; }
}
[Table("patientVitals")]
public class PatientVitals
{
[PrimaryKey]
public string VitalID {get;set;}
public string Weight { get; set;}
public string Height { get; set;}
[ForeignKey(typeof(Patient))]
public string SmartCardID {get;set;}
}
पूरी बात ठीक संकलित किया गया है, लेकिन जब मैं सिम्युलेटर मैं इस संदेश को हो रही है चलाने का प्रयास:
System.NotSupportedException दिया गया है के बारे में System.Collections पता नहीं .Generic.List1
मैंने SQLite-Net एक्सटेंशन documentation चेक किया और यह सूची का समर्थन करता है।
क्या कोई यह जानता है कि इसे कैसे ठीक किया जाए?
काम नहीं करता है, वही संदेश प्राप्त कर रहा है। हालांकि धन्यवाद! – Fayt
मैं पतला हूं कि एक फिक्स है कि वे सूची <> समस्या को ठीक करने के लिए (या काम कर रहे हैं) पर काम कर रहे हैं। [लिंक] (https://bitbucket.org/twincoders/sqlite-net-extensions/pull-requests/12/support-ilist-instead-of-list-as-enclosed/diff#comment-8587796) – Roman