Posts

Showing posts from August, 2018

Date Time methods ASP.NET

ASP.NET Microsoft Technology provides date time with the use of SYSTEM TIME method of operating system. Declaring Date Time  We can use date and time value by declaring with DateTime variable. Do not forget to add 'System' namespace Refer below code-snippet: DateTime dt = new DateTime(); Playing with DateTime We can get Date & Time value using above declared DateTime variable.  We can also get millisecond, second, minute, hour, day, week, month, year. Parts of DateTime Followings are the two main parts of DATETIME: DATE TIME Lets discuss these in more details: DATE 'Date' contains three part of  day, month and year . Take a look into code-snippet mentioned below, where we are getting the default System Date and time, using Microsoft built in system DateTime Variable. using System; namespace DateTimeDemo { class Program { static void Main(string[] args) { DateTime DT = new DateTime(); Console.WriteLine(...

SOLID Design Pattern Principles-C#

Here I would like to explain Solid Principles in C# Acronym for SOLID Principles are S-Single responsibility principle O-Open closed Principle L-Liskov substitution principle I-Interface segregation principle D-Dependency principle Single Responsibility principle This principal indicates that a entity or a class should have one and only one responsibility Ex: Customer class should contain information about real life customer. Add the properties and methods related to customer like Properties: customername,CustomerID..etc  Methods : InsertCustomer,UpdateCustomer,DeleteCustomer,Validate public class Customer { public string customerName { get; set; } public string customerID { get; set; } public void Insert() { //insert logic } public void Update() { //insert logic } public void Delete() { //Delete logic } public void Validate() { ...

Transformations in ASP.NET Web

Here i would like to explain Web Transformations in ASP.net. A transform file is an XML file that specifies how the Web.config file should be changed when it is deployed. Transformation actions are specified by using XML attributes that are defined in the XML-Document-Transform namespace, which is mapped to the xdt prefix A transform file is an XML file that specifies how the Web.config file should be changed when it is deployed. Transformation actions are specified by using XML attributes that are defined in the XML-Document-Transform namespace, which is mapped to the xdt prefix. The XML-Document-Transform namespace defines two attributes: Locator andTransform. • The Locator attribute specifies the Web.config element or set of elements that you want to change in some way.  • The Transform attribute specifies what you want to do to the elements that the Locator attribute finds. • The Locator and Transformelements themselves are not reproduced in the deployed Web.config file. Th...

Top 5 excellent features in SQL Server 2016

SQL server 2016 provides several features that helps to increase the performance, security, simplify the maintenance and data transformation.  1. Always encrypted This feature helps to encrypt only specific columns instead of whole database.  Data are encrypted always i.e both in rest and in motion. It helps to avoid man-in-middle attacks. To use this feature , the connection string in the client application should include the attribute Column Encryption Setting = enabled; 2. JSON Support JSON stands for Java Script Object Notation. SQL server has a built in JSON support which helps to parse relational data into JSON formatted data and also vice versa.  To export relational data into JSON, simply include FOR JSON [ auto | path] 3. Dynamic data Masking Helps to provide security to our data. We can choose, 1. default masking : For masking full data 2. partial masking : For masking part of the data 3. email masking : For retaining email format 4. random maskin...

Introduction to Xamarin and iOS app development using Xamarin

Image
Introduction to Xamarin Xamarin is a cross-platform tool that helps building of Android and iOS apps using C# as the language of coding. Xamarin opens up a way for C# programmers to build Android and iOS apps. Xamarin includes Xamarin.iOS for iOS app development and Xamarin.Android for Android app development. 2. iOS app development using Xamarin Depicting the two IDEs available for Xamarin.iOS app development. Developing iPhone, iPad, iPod and Mac apps have been made possible using XCode IDE and using Objective-C, from a long time. Building iOS applications i.e. applications for iPhones and iPads using C# language on .NET platform can be made possible by making use of Xamarin.iOS. The only key entity in building iOS apps using Xcode is the use of Objective-C as the language to develop these iOS apps. Currently, C# developers who are interested in iOS development don't have to learn Objective-C to develop iOS apps. They are only required to know the basic ...