I am new to C# and have learned the basics now I am trying to create crud application using Dictionary since it is better than list<t>
because of hash algorithm lookup.
I wanted the following using 'Dictionary< List<T>,List<T> >'
or Dictionary<key,List<property_classname>>
- Insert values to database using dictionary.
- Update operation to database using dictionary.
- Delete operation to database using dictionary.
- Read operation to database using dictionary.
Please suggest me a tutorial for it.I searched it but didn't find even msdn MSDN For Dictionary doesn't satisfy my learning requirement
Apart from that I am working on a login page using dictionary as following:
I have two list<T>
filling from database successfully:
List<A>
string type for all users details who are allowed to login, List<B>
string type contains the database of ip addresses which are blocked.
I wanted to use the dictionary< List<A>,List<B>>
in such a way that first
- It lookup at
List<A>
and selects the user with password. - It lookup at the
List<B>
and checks if the current ip address of user is blocked or not.
For above purpose I don't get idea how to enumerate between these two 'List'
I believe it is possible msdn definition : public class Dictionary<TKey, TValue> : IDictionary<TKey, TValue>
but don't know how to do it?