Following is my linq query.

```
var values = (from test in entities.Table1
                                     select new Entity
                                     {
                                         Id = test.id,
                                         Value = test.name

                                     });
                    return values.ToList();

```

When Iam trying to run this, I am getting the following error :
`Only parameterless constructors and initializers are supported in LINQ to Entities`.