Saturday 5 September 2015

How to pass HTML5 70-483 Exam ?

It's pretty simple to prepare for 70-483 HTML5 exam,

Recently I became MCSD, passed 3 exam which is coming under MCSD path.

I would like to suggest go with,
1)Microsoft.Actualtests.70-480.v2013-12-31.by.MARY.169q.vce
2) Microsoft.Braindumps.70-480.v2014-04-14.by.TAMARA.31q.vce
(Above both vce downloadable from examcollection.com)


You may find PDF Latest-Microsoft-EnsurePass-70-480-Dumps-PDF-03_53.pdf
any where in the google, please review before go to exam.

Above dumps only give latest question, but real knowledge purpose kindly read book thoroughly. it may give confidence.


Let me know incase if you face difficulty.


Data Reader object to List type model Convert

How we can convert Data Reader object to List type model?
Most of developer are struggling while connecting with the DB, how to iterate those table data!
Developer may be go with DataTable fill using adapter concept, or it may be generic list concept.


I'm giving here pretty simple example for Mapping list.
 public static class Utility
    {
        public static List<T> DataReaderMappingToList<T>(IDataReader dr)
        {
            List<T> list = new List<T>();
            T obj = default(T);
            while (dr.Read())
            {
                obj = Activator.CreateInstance<T>();
                foreach (PropertyInfo prop in obj.GetType().GetProperties())
                {
                    if (!object.Equals(dr[prop.Name], DBNull.Value))
                    {
                        prop.SetValue(obj, dr[prop.Name], null);
                    }
                }
                list.Add(obj);
            }
            return list;
        }
    }

How we can access it?
// We are just passing command and iterating those kind of list.

 using (IDataReader dataReader = cmd.ExecuteReader())
                    {
                        stateDropdownAttribute = Utility.DataReaderMappingToList<StateDropdownAttribute>(dataReader);
                    }  

It's  pretty simple in this way to iterate it.

Thanks,
Gauttam