Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CommandBehavior.SchemaOnly
Message
From
30/07/2013 11:43:33
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01579375
Message ID:
01579431
Views:
39
>>>Hi Viv,
>>>
>>>If I change definition of the TableSchema class to be
>>>
>>>public class TableSchema 
>>>{
>>>
>>>internal String TableName;
>>>
>>>public List<ColumnSchema> Columns = new List<ColumnSchema>();
>>>
>>>}
>>>
>>>then how would I retrieve column schema for particular column name ?
>>
>>
var columnSchema = Columns.Where(x => x.ColumnName == "Name").FirstOrDefault();
>
>Good idea! So, you think it's better than using dictionary, right?
>
>If so, I'll try to change to your code and use a List.

Don't see much point in a Dictionary here. And IEnumerable might be better the List....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform