Development & Training in .NET
.NET Training Chennai
Using BindingNavigator & BindingSource
May 4th
One of the students in our online .NET training program wanted to know about the usage of BindingNavigator and BindingSource controls. We thought it would be useful to write an article demonstrating the usefulness of these controls. We plan to add more such articles to the articles section of our website.
Have any questions? Ask them in our .NET forum.
Incoming search terms:
ASP.NET 4.5 and Visual Studio 11 Developer Preview is here
Jan 3rd
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
Visual studio shortcuts for the .NET developer
Aug 12th
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
Incoming search terms:
.NET training week-end batch starts on Sep 3
Aug 1st
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!
Incoming search terms:
- blogs :dot net training
- courses on dot net at chennai of two weeks duration
- dot net week end class chennai
- two weeks schedule for dot net training
- 2008 batch wafy result
- weekend dot net classes chennai
- weekend classes for net
- weekend batch jobs in chennai
- week end jobs for dot net in chennai
- wafy technologies fees for training
Retrieving Data by Using the EntityClient Provider
Jul 13th
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));
}
}
Incoming search terms:
Retrieving Data by using Entity SQL
Jul 13th
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));
}
Incoming search terms:
Retrieving Data by Using LINQ to Entities
Jul 13th
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.
// 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));
}
Incoming search terms:
Data Access – Entity Framework – Retrieving Complex Types
Jun 30th
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);
}
Incoming search terms:
.NET Training – C#, ASP .NET, MVC, WPF, WF, WCF and Silver Light
Jun 3rd
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

