Showing posts with label VS2012. Show all posts
Showing posts with label VS2012. Show all posts

Thursday, August 6, 2015

Understanding C# Features (8) Covariance, Contravariance, and Higher-Order Function


In Covariance/contravariance, variance is the capability to replace a type with a less-derived type or a more-derived type in a context. C# 4.0 and CLR 4 introduced covariance and contravariance for generics.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials

Entity Framework Code First — an indexing of fields and full-text query search


By the nature of my activity, I often should do various small projects, in the core, these are sites wr on ASP.NET MVC. At any modern project there are data, so also a database so with it it are necessary as that to work. If to discard all discussions about "pro and contra" I hastens to inform that my choice falling on Entity Framework Code First. During development of the project, I pays attention to exceptional business logic and I does not waste time on projection of a database and other sample actions. Absence of possibility «from a box» at Entity Framework of possibility becoming an unpleasant surprise at usage of such approach for me to build an index on fields, and as to use the convenient and modern mechanism of full-text query search. After a gugleniye lasting many hours, ha test tens various methods with StackOverflow and other similar sites, I coming to a conclusion that the obvious and simple solution of a problem are not present, therefore deciding to make own, about it and speech will go further.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,Entity Frameworks

Wednesday, July 1, 2015

Calling Objective-C code from JavaScript in iOS applications


In the last post I described how to Create iOS Application with HTML User Interface . In this post I am going to describe how to access Objective-C code from JavaScript running in the WebView. It is not as easy as it is in Android. There is no direct API in UIWebView to call native code, unlike in Android which provides WebView.addJavascriptInterface function.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials

Thursday, June 25, 2015

Endpoints in WCF


WCF provides communication for client applications using Endpoints. Endpoints provide the configuration required for the communication and create the complete WCF service application. So let us learn about the WCF Endpoints.

I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,WCF,Endpoints

Developer Productivity: What's New in C# 6


Are you a C# Developer who wants to be more productive? We've got good news! The latest and greatest features in C# can help. Join us to learn a more precise way to write constructs (that is, find out how to type less and code more).


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,C#6.0

A N-Tier Architecture Sample with ASP.NET MVC3, WCF, and Entity Framework


N-Tier software architecture can solve the following client/server system issues: scalability, security, fault tolerance and etc. In our previous article "N-Tier Architecture and Tips" we introduce the basic N-Tier architecture concepts and some practical tips. In this article, we try to elaborate a N-Tier architecture sample with ASP.NET MVC3, WCF and Entity Framework. In Java, usually there is a pre-defined way to achieve the N-Tier architecture: J2EE architecture, which uses session bean over entity bean for business and persistence layer, Java bean, servlet or JSP for the client presenter layer, Java Swing, HTML or applet as the client side. Therefore, for J2EE, different application are very likely implemented in very similar ways. However, in .NET, even though there are many tools and features available, there isn't any pre-defined way as J2EE does to guard how to implement the N-Tier architecture. As a result, there are too many inconsistent and existing ways to do this. Some are good; some are bad. This article tries to introduce a decoupled, unit-testable, deployment-flexible, implementation-efficient and validation-flexible N-Tier architecture in .NET. What we achieved here is to put some well-known nice tools and features in .NET together and come up with a workable solution. Because there is too much to cover in one article, we will mainly concentrate on business and persistence layers of N-Tier architecture in our sample solution, but will still briefly touch other layers too. In order to understand better this article, we suggest you to read first our previous article on the basics of N-Tier architecture here. As our previous article, this article is also based on the assumption that a team has a full control over all layers of the N-Tier architecture.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,ASP.Net,MVC,Entity Framework,WCF,N-Tier

Application Lifecycle Management


For years, Visual Studio has enabled software development organizations to break free of rigid, process-oriented application lifecycles that isolate development, testing, project management and operations teams. Microsoft's approach to Application Lifecycle Management (ALM) provides a flexible and agile environment that adapts to your team's needs, removes barriers between roles, and streamlines processes so you can focus on delivering high-quality software faster and more efficiently. In a world where software development is increasingly critical to business success, the ALM principles embodied by Visual Studio are more relevant than ever.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,Application Lifecycle Management, Agile, Source Control, Cross Plateform

Friday, May 16, 2014

Explain Cohesion and coupling ( .NET and C# Architecture level interview question) ?


Recently there was a .NET architect position interview in polaris and this question was asked to almost all candidates. Lot of people were aware of coupling but not of cohesion. So below goes a full explanation in detail with examples. If you look at the dictionary meaning of cohesion it means sticking things together which are of the same types or substance.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials

How to Change (Reseed) Identity Column Value in SQL Server


Introduction: Here I will explain how to change identity column seed value in SQL server 2008 or reseed identity column seed value of table in SQL server or how to change identity column value in SQL server. Description: In previous post I explained how set identity or auto increment column in SQL server, Custom auto increment column in sql server, resent identity column in sql server and


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,SQL Server

SSIS - How to Copy Variables From a SSIS Package to Another SSIS Package


As we know that we can copy Connection Managers, Tasks and Transformations between SSIS Packages but how would we copy the variables from a SSIS Package to another SSIS Package. This can save us time while development in cases where we need to create variables with same name and data types.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,SSIS

How to keep track of Miscellaneous files efficiently in Visual Studio


One of the easies and quickest way to keep track of several external files is by using the "Miscellaneous Files" in Visual Studio. When we develop applications in Visual Studio most of the time we do refer several external files. This files may not be required as a part of source code or solution items, but we referred them frequently for some additional purposes. For an example, project diagrams, other project files or code analysis reports etc. In sort, those files you want to use temporarily, but may wanted to refer in between during the development phase.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials

Tuesday, May 13, 2014

WPF Build An Application


This tutorial follows-on from my WPF Build a Window tutorial-sequence: Part 1 Part 2 Part 3 Part 4 It is not necessary for you to have completed the sequence, but I assume a lot of information covered, or introduced, in it. This is a first draft towards creating a complete WPF Application. The application built works but doesn't include the features, and good practices, that I am aiming towards. However, it does provide a basic, and working, framework that can be added-to. Oddly, I will start by listing what is not included: Not Yet Included: Code is not fully separated. In particular, there is some code-behind. It doesn't fully follow the MVVM pattern, although I'm using 'Models' and 'Views'...


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,WPF

Monday, May 12, 2014

Diving in OOP : Polymorphism and Inheritance (Part 1)


I have been writing a lot about advanced topics like MVC, Entity Framework, Repository Patterns etc, my priority always remains to cover the topic as a whole, so that a reader does not have to search for missing links anywhere else. This article will cover almost every OOPS concept that a novice/beginner developer may hunt for, and not only beginners, the article's purpose is to be helpful to experienced professionals who may need to brush-up on their concepts or who prepare for interviews. I will take the topics in a manner that we cover them in a simple, straightforward way giving code snippets as example wherever needed. We'll take C# as our programming language throughout our readings. We'll play with tricky questions and not go for enough theory. For theory you can refer MSDN.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,OOPs

Visual Studio Design Patterns add-in


If you have been programming using a object oriented language, then you must have heard of design patterns. There are a number of books and web sites on this topic, but while using Visual Studio, you would have to go out of the IDE, refresh your memory about what a particular software pattern does and type or copy the code for it. Wouldn't be easier to have an integrated Visual Studio tool to help you select the right pattern and insert the code for you with only a few clicks? This is exactly what this Visual Studio add-in does: it indexes some commonly known OO patterns, presents them in easy to search user interface and inserts the code into your working project. It provides you with parameters to further customize the patterns and it works for languages supported by Visual Studio like C#, VB.net, C++ flavors and can be extended to other Visual studio supported languages like F#.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials

Observer Pattern (C#)


The observer design pattern is yet another, one of my favorite design patterns which falls in the category of "behavioral pattern". Going by its name, we can say that observer is something (objects in case of OOPS) which is looking upon (observing) other object(s). Observer pattern is popularly known to be based on "The Hollywood Principle" which says- "Don't call us, we will call you." Pub-Sub (Publisher-Subscriber) is yet another popular nickname given to Observer pattern. Based on the "Hollywood principle", we can make a guess that in observer pattern, there is a special Hollywood celebrity object in which all other common objects are interested. In actual terms in the observer pattern - "There are n numbers of observers (objects) which are interested in a special object (called the subject). Explaining one step further- there are various objects (called observers) which are interested in things going on with a special object (called the subject). So they register (or subscribe) themselves to subject (also called publisher). The observers are interested in happening of an event (this event usually happens in the boundary of subject object) whenever this event is raised (by the subject/publisher) the observers are notified (they have subscribed for the happening of this event- Remember?)


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials

A Component and Message-Based Architectural Style C2


First of all, this is my first article and I am in a quandary. I wrote this article with the hope to give vision to beginners who wants to expand their horizon in architectural styles. This style is first proposed by a team from the Institute for Software Research at the University of California, Irvine. They have a framework for it too which is implemented with Java. I just want to remind it to old coders and instruct for beginners. I tried to implemented it with C#, they are not exactly the same, but seems enough to make some demonstration.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials

10 Golden Rules Of Good OOP


A good architecture means money saved in learning, maintaining, testing, fixing, extending and scaling source code. This requires more time and care for the initial development, but quickly returns the investment with great interests. Inevitably, even the best designed architectures need some adjustment and refactoring in time. Patches, modifications and last minute changes are part of the IT business, therefore, 'quick and dirty' solutions, when needed, should always try to confine themselves in an isolated place where it will be easy to refactor later on, and that will affect as minimum as possible all the other components. The following guidelines are not exhaustive and are meant to be applied on top of the SOLID principles and proper use of OO Design Patterns.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,OOP

Sunday, May 11, 2014

WPF Build A Window 4, Binding & Validation


Part 1 Part 2 Part 3 Topic List: Binding to an Object and Properties Control Templates Data Validation Change Notification - INotifyPropertyChanged I have made the following changes to the application from Part 3. None of these are essential so you could skip them if you prefer. It is also possible to complete this part of the tutorial with a new Window, two TextBoxes and a DatePicker; it just requires the addition of the reference local: xmlns:local="clr-namespace:ProgrammersWPF2". Changes to the Application: Moved Menu and MenuItem Styles into App.xaml Removed Canvas, and Expander & Canvas Removed a ColumnDefinition Removed btnClose_Click handler from code-behind (using Command instead) Renamed the DatePicker...


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,WPF

Sunday, May 4, 2014

TypeScript – Emit Error: Write to file failed | How to Resolve ?


Recently I came across this problem while configuring the TFS build server for Typescript. You may encounter "Emit Error: Write to file Failed" error while Typescript Complier (TSC) compiles the TS files and generate the associated JavaScript files . This happen due to the already pre-existing compiled JavaScript files that are already checked in, and […]


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials

Monday, April 28, 2014

Behavior-Driven Development with SpecFlow and WatiN


As automated unit testing becomes more ubiquitous in software development, so does the adoption of various test-first methods. These practices each present a unique set of opportunities and challenges to development teams, but all strive to establish a "testing as design" mindset with practitioners. For much of the test-first era, however, the method for expressing the behavior of a user has been through unit tests written in the language of the system—a language disconnected from that of the user. With the advent of Behavior-Driven Development (BDD) techniques, this dynamic is changing. Using BDD techniques you can author automated tests in the language of the business, all while maintaining a connection to your implemented system. Of course, a number of tools have been created to help you implement BDD in your development process. These include Cucumber in Ruby and SpecFlow and WatiN for the Microsoft .NET Framework. SpecFlow helps you write and execute specifications within Visual Studio, while WatiN enables you to drive the browser for automated end-to-end system testing. In this article, I'll provide a brief overview of BDD and then explain how the BDD cycle wraps the traditional Test-Driven Development (TDD) cycle with feature-level tests that drive unit-level implementation. Once I've laid the groundwork for test-first methods, I'll introduce SpecFlow and WatiN and show you examples of how these tools can be used with MSTest to implement BDD for your projects.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

C#,.NET,Architect,Intermediate,VS2012,.Net,Articles,Computer Tutorials,BDD,Behavior-Driven Development,Specflow,WaitN

LinkWithin

LinkWithin

Like Us On Facebook and Receive All Updates!

You can also receive Free Email Updates:

Powered By Tutorails