I'm trying to develop an application with a following layers:
- Entity Framework Model
- Data Service (either WCF or Web API, but I prefer Web API)
- Java Script + HTML + CSS Client
The model contains inheritance and polymorphic collections:
public class Master
{
public virtual ICollection<BaseDetail> Details { get; set; }
}
public abstract class BaseDetail
{
public virtual Master Master { get; set; }
}
public class Detail1 : BaseDetail { }
public class Detail2 : BaseDetail { }
public class Detail3 : BaseDetail { }
The problem is that I couldn't find a Java Script framework suitable for my needs:
- Knockback
- pros:
- supports inheritance and polymorphic collections very well
- supports Web API & JSON (I think it's simpler than WCF & oData)
- cons:
- doesn't support EF metadata. You have to duplicate a model in java script by hands
- doesn't understand JSON-serialized EF-model well enough. You have to pre-, post-process JSON
- pros:
- Breeze.js
- pros:
- supports EF metadata very well. JS model is generated on the fly
- cons:
- doesn't support inheritance
- doesn't support WebAPI + JSON
- pros:
- JayData
- pros:
- supports EF metadata well enough
- cons:
- it seems that it supports inheritance, but doesn't support polymorphic collections
- doesn't support WebAPI + JSON
- pros:
Are there any other alternative JS-frameworks? Or maybe I'm wrong about named frameworks? Can you provide an example? Thanks!