Do I need to duplicate my Entity Framework classes in Typescript when using Angular 2?
<p>Let's say I have a nice C# backend with Entity Framework. I've got my database set up and a simple class like</p>

<pre><code>public class MyItem
{
    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public int ItemID { get; set; }
    public string ItemName { get; set; }
}
</code></pre>

<p>I've got a nice Angular2 front end where I retrieve data from an API and present such as...</p>

<pre><code>template: '&lt;div&gt;{{ItemName}} - {{ItemID}}&lt;/div&gt;'
</code></pre>

<p>At the moment I have a duplicate, seemingly redundant typescript class ie</p>

<pre><code>export class MyItem{
  ItemID: number;
  ItemName: string;
}
</code></pre>

<p>Is there any way I can avoid this typescript class? Can I bind to an object that isn't defined in advance? In Angular 1 we could bind to any property on the scope
{{MyItem.SomeProperty}}</p>