Boost your SEO with blogs

Creating blogs could boost your SEO. Why not create a few blogs? Self hosting a blog is good but you don’t have to. You can use free blogging engines like Blogger.com, WordPress.com and Tumblr.com. I tried these for our .NET training SEO and they look and work great. Here’s what I created:

Blogger:
http://best-dotnet-training.blogspot.in/

Tumblr:
http://wafy.tumblr.com/

Bookmark/FavoritesDeliciousDiggEmailLinkedInOrkutPosterousPrintFriendlyTumblrTwitterShare

ASP.NET 4.5 and Visual Studio 11 Developer Preview is here

We have plans on bringing Visual Studio 11 and .NET Framework 4.5 as part of our training program. For those eagerly waiting to know about the next big release of Visual Studio 11, take a peek here:

http://msdn.microsoft.com/en-us/vstudio/hh127353
http://www.asp.net/vnext/whats-new

Bookmark/FavoritesDeliciousDiggEmailLinkedInOrkutPosterousPrintFriendlyTumblrTwitterShare

Do you think you are good at OOPS concepts? Try out this simple test

1) To use a class it should be instantiated in memory
True False
2) A class can have only one destructor
True False
3) Destructors can be inherited
True False
4) Protected internal modifier limits access to current assembly only
True False
5) An interface can be split over two or more source files
True False
6) An interface is a abstract class with all abstract methods
True False
7) All classes inheriting from abstract class should implement all abstract functions
True False
8) Abstract modifier can be used with a sealed class
True False
9) Static classes indicate that the entire class contains only static members
True False
10) A sealed class can be a base class
True False

Bookmark/FavoritesDeliciousDiggEmailLinkedInOrkutPosterousPrintFriendlyTumblrTwitterShare

Visual studio shortcuts for the .NET developer

Almost every student asks me how to remember the namespaces for the classes. It’s plain simple, Visual Studio has a very useful shortcut for finding the namespace of a class. It comes in very handy when you are working on projects and you need to be fast typing code. So here are the steps to use it.

Type the name of the Class, highlight it and press Shift + Alt + F10, phew! you got your namespace.

Use the drop down displayed to do the following:

1. Add the namespace displayed to the usings clause
2. Fully qualify your class
3. Generate a new class
4. Generate a new type

The other shortcut that I find very useful is for declaring properties:

To declare a property just type prop and press TAB TAB. Now type in the datatype and a the name for the property.

There’s also a shortcut to implement interfaces automatically. This would save you tons of time in implementing interfaces.

Declare the class and type the name of the interface. Now, highlight the interface that you’d like to implement and press Shift + Alt + F10. Select the corresponding option in the dropdown – Implement interface (or) Explicitly implement interface

Felix.J, PMP
View Upcoming Dot Net Courses by WAFY

Bookmark/FavoritesDeliciousDiggEmailLinkedInOrkutPosterousPrintFriendlyTumblrTwitterShare

.NET training week-end batch starts on Sep 3

We are one of the best .net training institutes in Chennai. Fast track, week-end courses start on Aug 20, 2011 for C#, ASP .NET and SQL Server 2008. Join us NOW!

Want to be the best? Then, you got to learn from the best. Read on to know more.

Tutors:

Felix Marianayagam.J, PMP, MCT, MCTS, MCITP

Subha Narayanan, PMP, MCT, MCTS, MCITP

Note: Wafy Technologies is a Microsoft Silver Partner with competencies in Web and Windows software development.

Expertise:

Over 13+ years of experience in programming, project management and architecting multiple dot net projects for international clients. We give you hands-on training with one-on-one interaction. We give you very high value for a very low cost. It can’t get any better. Join us NOW!

About the course:

Nothing bookish. Designed from ground up, it’s all about learning the tricks of the trade using C#, ASP .NET – windows/web applications. We teach using the latest Microsoft technologies and tools i.e. Visual Studio 2010 and .NET Framework 4.0. The course will also highlight about the Entity Framework and Dynamic websites.

You will learn everything you need to develop professional C# Windows and ASP .NET web applications of international standards. Would you like your learning curve to be at the peak? Join us NOW!

Bookmark/FavoritesDeliciousDiggEmailLinkedInOrkutPosterousPrintFriendlyTumblrTwitterShare

Retrieving Data by Using the EntityClient Provider

A simple snippet that let’s you know how to retrieve data by using Entity Client Provider. You can refer to the DataModel image in the earlier post.


            // Retrieving Data by Using the EntityClient Provider
            // Entity Connection, Command and Parameter objects
            using (EntityConnection connection =
                new EntityConnection("name=EMSEntities"))
            {
                connection.Open();
                // Note that "Order" is the actual table name
                const string queryString = @"SELECT VALUE r FROM
                    EMSEntities.Orders as r WHERE r.OrderID=@OrderID";
                EntityCommand cmd = new EntityCommand(queryString,
                    connection);
                EntityParameter p = new EntityParameter() {
                    ParameterName = "OrderID", Value = 1 };
                cmd.Parameters.Add(p);
                EntityDataReader reader =
                    cmd.ExecuteReader(CommandBehavior.SequentialAccess);
                while (reader.Read())
                {
                    string orderID = reader.GetInt32(0).ToString();
                    string orderDate  = reader.GetDateTime(1).ToString();
                    Debug.WriteLine(String.Format("Order ID = {0}, " +
                        " Order Date = {1}", orderID, orderDate));
                }
            }
Bookmark/FavoritesDeliciousDiggEmailLinkedInOrkutPosterousPrintFriendlyTumblrTwitterShare

Retrieving Data by using Entity SQL

A simple snippet that let’s you know how to retrieve data by using Entity SQL. You can refer to the DataModel image in the previous post.


            // Retrieving Data by using Entity SQL
            // Note that "Orders" used in the query is an Entity
            using (EMSEntities context = new EMSEntities())
            {
                const string queryString = @"SELECT VALUE r from " +
                    "Orders as r WHERE r.OrderID=@OrderID";
                ObjectQuery<Order> orderQuery =
                    new ObjectQuery<Order>(queryString, context);
                orderQuery.Parameters.Add(
                    new ObjectParameter("OrderID", 1));
                List<Order> results = orderQuery.ToList();
                string orderID = results[0].OrderID.ToString();
                string orderDate = results[0].OrderDate.ToString();
                Debug.WriteLine(String.Format("Order ID = {0}, " +
                    " Order Date = {1}", orderID, orderDate));
                EntityCollection<OrderDetail> details =
                    results[0].OrderDetails;
                Debug.WriteLine(String.Format(
                    "Order Detail Count = {0}", details.Count));
            }
Bookmark/FavoritesDeliciousDiggEmailLinkedInOrkutPosterousPrintFriendlyTumblrTwitterShare
Data Access

Retrieving Data by Using LINQ to Entities

A simple snippet that let’s you know how to retrieve data by using LINQ to Entities. Just follow it through, I guess it’s self-explanatory.

Application Code -> Object Context -> Conceptual Model

C# .NET Entity Framework


            // Retrieving Data by using LINQ to Entities
            using (EMSEntities context = new EMSEntities())
            {
                ObjectQuery<Order> orders = context.Orders;
                IQueryable<Order> query = from c in orders where
                                              c.OrderID == 1 select c;
                List<Order> results = query.ToList();
                string orderID = results[0].OrderID.ToString();
                string orderDate = results[0].OrderDate.ToString();
                Debug.WriteLine(String.Format("Order ID = {0}, " +
                    " Order Date = {1}", orderID, orderDate));
                EntityCollection<OrderDetail> details =
                    results[0].OrderDetails;
                Debug.WriteLine(String.Format(
                    "Order Detail Count = {0}", details.Count));
            }
Bookmark/FavoritesDeliciousDiggEmailLinkedInOrkutPosterousPrintFriendlyTumblrTwitterShare

Data Access – Entity Framework – Retrieving Complex Types

Using the EDM, we created a Complex type for storing/re-using addresses. We also discussed about the advantages of complex types over Entity. Entity requires a key as opposed to complex types, which don't need a key. Given below is a sample snippet on how you can access complex types in an entity. 

    EMSEntities context = new EMSEntities();
    var addresses = from address in context.Addresses
        where address.ContactID == 1
        select address;

    foreach (Address address in addresses)
    {
        Console.WriteLine("Contact Id: " + address.ContactID);
        Console.WriteLine("Contact's address1: " +
            address.AddressComplex.Address1);
        Console.WriteLine("Contact's address2: " +
            address.AddressComplex.Address2);
    }
Bookmark/FavoritesDeliciousDiggEmailLinkedInOrkutPosterousPrintFriendlyTumblrTwitterShare

.NET Training – C#, ASP .NET, MVC, WPF, WF, WCF and Silver Light

Training is personally conducted by me. Nothing bookish, no lame programs and examples. Everything has been tried and tested. I teach what I have learnt through many years of hardwork. I’ll separate you from the rest of the freshers and will give you that elite professional knowledge. We have non-MOC batches running on both week-ends and week-days.

Are you looking for top notch knowledge? Then contact me at felixm@wafytech.com or call us at +91 9884123793

Brace yourself for a very steep learning curve in .NET.

http://www.wafytech.com/training

Note: No corporates or partnerships, my training service is only extended for students and freshers.

Dear Students/freshers, please do not come and ask me for a job. I’m here to teach you how to fish. Once you know the tricks of the trade, you will be the most sought after by head-hunters. I can promise you that much.

Money is a by-product of knowledge.

Thanks,
Felix.J, PMP

Bookmark/FavoritesDeliciousDiggEmailLinkedInOrkutPosterousPrintFriendlyTumblrTwitterShare