I am connected to a Database using Entity Framework
. Now, I want to create a List<Object>
of the data received using Linq
So, I have:
var listOfSettings = new List<AppSetting>();
var query = from appSetting in AppSettings
where appSetting.AppConfigID == appConfigId
select new AppSetting()
{
AppSettingID = Int16.Parse(appSetting.AppSettingID),
...
};
How can I add that AppSetting Object
to the List
of Settings?