OrientDB-NET.binary icon indicating copy to clipboard operation
OrientDB-NET.binary copied to clipboard

System.ArgumentException : propertyType List`1 is not yet supported.

Open dmikov opened this issue 10 years ago • 1 comments

Was trying to create class with list or enumerable property and are getting this error. You can easily replicate it by modifying the test case like that.

public class GitHub_issue38
{
    [Test]
    public void ShouldCreateRecordContainingSingleQuote()
    {
        using (TestDatabaseContext testContext = new TestDatabaseContext())
        using (var db = new ODatabase(TestConnection.GlobalTestDatabaseAlias))
        {
            if (!db.Schema.IsClassExist<TestClass>())
            {
                db.Create.Class<TestClass>().CreateProperties<TestClass>().Run();
            }

            db.Command("delete from TestClass");

            var text = @"Jim'n";
            var test = new TestClass() { SomeString = text };
            db.Insert(test).Run();

            var result = db.Select().From<TestClass>().ToList<TestClass>();
            Assert.AreEqual(text, result.Single().SomeString);
        }
    }

    public class TestClass
    {
        public TestClass()
        {

        }
        public List<string> SomeList { get; set; }
        public string SomeString { get; set; }
    }
}

dmikov avatar Jun 29 '15 13:06 dmikov

Is this project dead? 16 days no reply?

dmikov avatar Jul 15 '15 13:07 dmikov