New to site?


Lost password? (X)

Already have an account?


(X)

Presents

#CSHARPCON20

The C# Corner Annual Conference 2020 is a three-day annual event for software professionals and developers.

3
DAYS
72
SPEAKERS
65
SESSIONS

Magnus Mårtensson
Microsoft Regional Director, Azure MVP, CEO Loftysoft

Avirag Jain
Director & CTO R Systems

Mahesh Chand
Founder C# Corner, CEO Mindcracker

Chris Gali
CEO & Co-Founder Graphite

Subinder Khurana
Chief Architect StoryProcess, Founder NASSCOM DeepTech Club

Bryan Rishforth
Investor, Chairman Graphite

Bryn Everson
Director Biz Dev Graphite

Raj Tiwari
Digital Transformation Leader, Futurist and Visionary

Joseph Guadagno
Microsoft MVP, Lead Quicken Loans

Nikita Sachdev
Entrepreneur, Blockchain Enthusiast & Advisor, Social Media Influencer

Doug Wagner
COO & Founder Adapt Technical Group

Ritesh Modi
Architect, Senior Evangelist, Cloud Architect

Crystal Wenrick
Director Communications Mindcracker

Allen O’Neill
Microsoft MVP, Consulting Engineer/Architect

Praveen Kumar
CEO MCN Solutions

Chris Love
Founder Love2Dev, Microsoft MVP, Author

Sanjay Vyas
Microsoft Regional Director, Microsoft MVP, Founder & CEO SkillLabs Technologies

Veena Sarda
Deep Learning Consultant, Author

Sekhar Srinivasan
C# Corner MVP, Microsoft Certified Trainer, Pluralsight Author

Lalit Bansal
Founder & CEO - EIY SYS

Navdeep Garg
CEO Revinfotech

Prakash Tripathi
Tech Manager/Leader, Microsoft MVP, Blogger

Bhavna Jain
Breakthrough Consultant

Naveen Sharma
Enterprise Architect, Leadership Coach, Author

Vidya Vrat Agarwal
Principal Architect, Microsoft MVP, Author

Sheetal Agarwal
Founder Clownselors, Medical Clown, Trainer

Abhishek Kant
Founder GTM Catalyst

Vishnu Saran
Founder & CEO VoiceQube

Sandeep Soni
Founder & CEO Deccansoft, Microsoft Certified Trainer

Parveen Malik
AVP InfoSec & Vulnerability Management, Information Security Expert

Nitin Pandit
Microsoft MVP, Developer Evangelist, Author

Niloshima Srivastava
C# Corner MVP, Tech Architect, Trainer, Blogger

Bala Chirtsabesan
Senior Software Engineer at Microsoft, Author

Manoj Mittal
Sr. Technical Architect, C# Corner MVP, Author

Chandni Di
Co-Founder Voice of Slum

Vithal Wadje
Technical Lead, Microsoft MVP, Author

Shivam Ahuja
Founder SkillCircle, Business Mentor

Chervine Bhiwoo
Solution Architect, Microsoft MVP, Author

Saurabh Jain
Vice President Paytm, Founder Fun2Do Labs, Author

Vinay Solanki
Head IoT at Lenovo, Founder IoT-NCR

Anshu kumari
Founder Blockchainkids, Inventor, Trainer

Amit Singal
CEO Startup Buddy

Dev Pratap
Co-Founder & CEO Voice of Slum

Amey Vartak
Technology Consultant, Full Stack Developer, C# Corner MVP, Author

Viswanatha Swamy
Principal Software Engineer, C# Corner MVP, Author

Sanket Verma
Research Engineer @ Ballistics (Forensics) and Chair, PyData Delhi

Sourabh Somani
Lead Developer, Microsoft MVP, Author

Abhishek Mishra
Software Architect, C# Corner MVP, Author

Siddharth Vaghasia
Technical Consultant, C# Corner MVP, Blogger

Bassam Alugili
Senior Software Specialist, Database Expert

S Ravi Kumar
Solution Architect, C# Corner MVP, Author

Sundaram Subramanian
Full Stack Developer, C# Corner MVP, Speaker

Deepesh Somani
Solution Architect, Microsoft MVP, Author

Debasis Saha
Technical Project Manager, C# Corner MVP, Blogger, Author

Vipul Jain
Software Architect, C# Corner MVP, Author

Akshay Patel
Technical Architect, Microsoft Certified Trainer, C# Corner MVP, Author

Stephen Simon
RPA Developer, Evangelist, Author

Vivek Sharma
Founder Kingster636, AR/VR Specialist

Jeetendra Gund
Technical Lead, C# Corner MVP, Author

Sujal Beniwal
AI Enthusiast, Student

M Viknaraj
Microsoft MVP, Azure Architect, Author

Prasham Sabadra
Software Architect, C# Corner MVP, Trainer, Author

Aakash Maurya
Senior Developer, C# Corner MVP, Speaker

Ankit Sharma
Senior Software Engineer, C# Corner MVP, Author

Mangesh Gaherwar
Team Lead, C# Corner MVP, Author

Viral Jain
Technical Consultant, C# Corner MVP, Author

Bhasker Das
Solution Architect, Evangelist

Manish Dwivedi
Associate Project Manager

Ck Nitin
Programmer, Author

Rohit Gupta
Technical Trainer, Author

Manish Tewatia
Full-stack Marketer, UX Designer

Bhavya Gaur
Technical Illustrator

Rohit Tomar
SEO/SMO Expert

Web Track

Cloud & Data Track

Dev Track

8am-9am

Registration & Breakfast

9am-10am

Future of Desktop Apps with JS (ElectronJs)

Nitin Pandit

Building Serverless Microservices Using Microsoft Azure

Vithal Wadje

Innovating RPA: A Robot for Every Person

Stephen Simon

10am-11am

Managing Cloud Storage Accounts using Logic Apps

Viknaraj Manogararajah

Data visualization using Python

Sekhar Srinivasan

Going Cross platform with AR Foundation

Vivek Sharma

11am-12pm

Keynote

12pm-1pm

Managing your Azure dependencies in ASP.NET Core apps using VS

Bala Chirtsabesan

Securing Applications on Intelligent Azure

Abhishek Mishra

Getting started with Blazor the Framework of Future

S Ravi Kumar

1pm-2pm

Lunch

2pm-2:45pm

Build Progressive Web Apps using Angular 9

Debasis Saha

Build and deploy to any platform using Azure DevOps

Chervine Bhiwoo

Deep Dive in Azure Service Bus

Akshay Patel

2:45pm-3:45pm

Build a Native Mobile Application using React Native and JavaScript

Joseph Guadagno

Making sense of Web Job, Web Job SDK and Functions in Azure

Prakash Tripathi

CloudFront Distribution in AWS

Viral Jain

3:45pm-4pm

Tea Break

4pm-4:30pm

Introduction to PowerBI

Aakash Maurya

Build Advanced SPFx solutions with React and Graph API

Siddharth Vaghasia

Build Business Intelligence Analyst (BIA) Skills

Sundaram Subramanian

4:30pm-5pm

Deep dive of Power Platform – AI BUILDER

Prasham Sabadra

Panel 1

What's new in SharePoint development

Vipul Jain

5pm-5:30pm

Build a SSO (Single Sign On) based Native JavaScript application with Microsoft Identity within 10 minutes

Manoj Mittal

Panel 2

Applications and working of AI

Veena Sarda

5:30pm-6pm

Deploying serverless API's with .Net core 3.0 on AWS & Azure

Amey Vartak

Panel 3

Blockchain with .NET Core (Ark)

Anshu Kumari

6pm-6:30pm

Closing Note & Prize Distribution

Dev Track

Cloud Track

Architecture Track

Emerging Tech Track

8am-9am

Registration & Breakfast

9am-10am

Creating Full-Stack Web Apps Using Server-Side Blazor

Ankit Sharma

Real time face recognition with MS Cognitive Services

Niloshima Srivastava

Building Scalable APIs with GraphQL

Jeetendra Gund

Future of development with AI and Blockchain

Navdeep Garg

10am-11am

Debugging Tips and Tricks with Visual Studio 2019

Joseph Guadagno

Azure Containers

Abhishek Kant

Enterprise Architecture

Naveen Sharma

Bot Framework - learn it fast and look like a boss!

Allen O’Neill

11am-12:30pm

Keynote

12:30pm-1:30pm

.Net Core & C# 8 Performance

David McCarter

Working with Azure kubernetes services

Ritesh Modi

Becoming an Architect

Vidyavrat Agarwal

Why Techies Need to Learn Product Management

Saurabh Jain

1:30pm-2:30pm

Lunch

2:30pm-3:30pm

Build a rules engine in .Net Core

Sanjay Vyas

Building CI and CD Pipeline using Azure DevOps

Sandeep Soni

Entity Framework Core - Tips and Tricks, Performance Optimization, and Tuning

Bassam Alugili

Hacking your way into Data Science

Sanket Verma

3:30-4:15pm

Speed up your .Net Core Website

Sourabh Somani

Azure

Magnus Mårtensson

Demystifying Open Distro for Elasticsearch

Suman Debnath

Future of Data

Shivam Ahuja

4:15pm-4:30pm

Tea Break

4:30pm-5:15pm

gRPC with C# and .Net Core

Mangesh Gaherwar

Panel 1

Essentials of Cloud security

Parveen Malik

Power platform and Dynamics 365

Deepesh Somani

5:15pm-6pm

Microservices - the gRPC Way

Viswanatha Swamy

Panel 2

Reserved

Reserved

6pm-6:30pm

Closing Note & Prize Distribution

Creating a Zero-Downtime EF Core Migration Script

A schema change that takes forty seconds to apply is straightforward to schedule when a single developer is watching the console. Production migrations rarely work that way. By the time a customer in Brisbane refreshes their dashboard, an automated pipeline may already have replaced four instances of your application, and a background worker from the previous release may still be querying columns that no longer exist.

Zero-downtime migration is less about speed than about compatibility. It means designing schema changes so that the code running before the change and the code running after it can share the same database for as long as both versions are alive. EF Core gives you the tooling to generate, review and repeat migrations; the discipline of sequencing comes from you.

Why a rolling deployment changes the rules

A blue-green or rolling deployment in Azure App Service, Azure Kubernetes Service, or even a pair of virtual machines keeps old and new assemblies running at the same time. That overlap is normally invisible to users. It becomes painfully visible the moment a migration renames a column: the previous release throws Invalid column name, and the incident dashboard lights up in Sydney while Melbourne engineers are still finishing their morning flat whites.

The alternative is to treat database work as a separate, gated step that happens before code rollout. Old code keeps working against the expanded schema, new code starts after the switch, and nothing has to be stopped.

Australian schedules make this separation more than a nicety. Sydney and Melbourne sit ten or eleven hours ahead of UTC depending on daylight saving, while Brisbane does not shift at all, so a release triggered by a vendor in the United States often lands in the middle of the night locally. Many teams here protect a short window in the Australian arvo for production changes, precisely because that is when engineers in Perth, Adelaide and Melbourne can respond. A migration job that runs ahead of the rollout fits that window far better than one that fires every time a new container starts.

The expand and contract pattern in practice

The pattern has two halves. Expand adds capability without removing any: a new nullable column, a new table, an additional index, a widened column length. Contract removes the old shape, but only in a later release once no running code refers to it.

Start by adding the new column as nullable so the database never has to invent a value for millions of existing rows:

protected override void Up(MigrationBuilder migrationBuilder)
{
    migrationBuilder.AddColumn<string>(
        name: "FulfilmentReference",
        table: "Orders",
        nullable: true);
}

Backfill the value separately, then deploy code that reads the new column and falls back to the old one if it is null. Once the backfill has finished and the old release has been retired, a subsequent migration drops the previous column. The window between the two deployments is the rollback period, and it should be as long as your organisation tolerates: a sprint for an internal tool, a full cycle for a system tied to a bank settlement window at midnight.

Contract steps deserve the same caution as expansion. Dropping a column destroys information that no down migration can recreate, and it breaks any consumer outside your team that still reads the old shape: a report in Power BI, a CSV extract run by finance, a partner integration. Australian teams managing payment, retail and logistics data will recognise the pattern from annual audit cycles, where every extra change inside the last fortnight of the financial year adds risk to the 30 June close.

Generating a script you can review and rerun

EF Core can produce a script rather than applying changes directly, and a script is far easier to review than a deployment action:

dotnet ef migrations add AddFulfilmentReference
dotnet ef migrations script --idempotent --output ./scripts/fulfilment-reference.sql

The idempotent form checks the migrations history table before applying each migration, so a partially applied script can be rerun safely. That property matters when a deployment pod is evicted halfway through a batch of statements. From EF Core 6 onwards, dotnet ef migrations bundle --output ./migrations produces a folder of scripts and metadata that can be handed to an operations team who prefer to apply changes themselves.

Generated migrations are a starting point, not a finished artefact. Adding a non-nullable column with a constant default can hold a schema lock on a large table for the duration of the write, so prefer adding the column as nullable, backfilling in batches, and only then altering it to NOT NULL. On PostgreSQL, an index cannot be created inside the transaction that EF Core wraps around a migration, so the operation needs suppressTransaction: true and a deliberate CREATE INDEX CONCURRENTLY. On SQL Server, set a finite LOCK_TIMEOUT so a blocked request gives up rather than queueing indefinitely behind a long-running reporting query.

Database-agnostic tooling does not remove the need for provider-specific knowledge. dotnet ef migrations script generates valid T-SQL for SQL Server and Azure SQL, but the tuning of that T-SQL is still your job. Review generated code the same way you would review a pull request: look for table scans, look for locks, look for statements that touch more rows than expected.

Moving data while the application keeps serving

Data movement is where zero-downtime plans usually fail. A migration transaction that rewrites ten million rows will hold locks, extend the transaction log, and eventually block the very workload you are trying to protect. The backfill belongs outside the migration script.

Run it as a separate workload: a console application triggered from the pipeline, a scheduled Azure Function, or an Azure SQL Agent job with an idempotent resume. Batch the updates in groups of a few thousand rows, commit each batch, and pause briefly between batches so the application can drain its own work.

UPDATE TOP (2000) Orders
SET FulfilmentReference = CONCAT('ORD-', RIGHT('000000' + CAST(Id AS VARCHAR(20)), 8))
WHERE FulfilmentReference IS NULL;

Repeat until the affected row count reaches zero, and keep a record of progress so an interrupted run continues rather than restarting. Idempotency here is not a nicety either: pipeline retries are routine, and a job that blindly updates every row will never finish.

Approach Typical service impact Coordination overhead Recovery path Best suited to
Migration applied by the app at startup Rises on every instance restart Low Revert code, restore backup Small services and prototypes
Migration job run before app rollout None when schema stays backward compatible Medium Down script or forward fix Most production web applications
Hand-written script run by a DBA Depends entirely on statement design High Manual restore or point-in-time restore One-off and legacy changes
Expand, batched backfill, later contract Effectively none High across several releases Revert code, keep the old column Large, heavily accessed tables

Running the change without two teams in the room

The migration needs exactly one owner. If every application instance applies migrations on boot, you have a race: several pods call database update simultaneously, and some will fail on locks or partially applied history entries. Give the pipeline that responsibility, then let the application start with the assumption that the schema is already correct.

Serialise the work with a lock the database understands. On SQL Server and Azure SQL, sp_getapplock is the common choice; PostgreSQL offers advisory locks; Azure DevOps provides environment-level approvals and locks if your pipeline is already the coordinating layer. Whichever you pick, the pipeline should fail loudly if it cannot acquire the lock rather than proceed and hope.

Connection details deserve attention too. Keep the production connection string in Azure Key Vault, scoped to the Australian region that hosts the database, and pass it to the migration step through a pipeline variable or a managed identity rather than a checked-in configuration file. That also keeps the operation inside the data residency expectations shaped by the Privacy Act 1988 and Office of the Australian Information Commissioner guidance, where personal information for Australian customers is generally expected to remain in Australia.

Application-level control completes the picture. Introduce the new column behind a feature flag so the switch from old to new reads can be reversed without a deployment. Design the flag to fail closed, and confirm that background workers, scheduled jobs and integration consumers all honour the same switch, because a stray consumer is enough to bring back a schema error.

Verifying the result and planning the retreat

After the script runs, confirm what actually happened. The migrations history table records which migrations the database believes are applied, and recent EF Core versions can also maintain a lock table that prevents concurrent migration runs. Use dotnet ef migrations list to inspect state, and dotnet ef migrations has-pending-model-changes to confirm the deployed build matches the model in source control. A mismatch here often explains the puzzling case where a deployment succeeds and the app still reads stale columns.

Then check the database itself. Compare row counts before and after the backfill, sample the new column for nulls, and watch for blocking and long-running queries while traffic peaks. A backfill that looked quick in staging can behave very differently against a table that Australian shoppers are actively writing to during a sale.

Rolling back is rarely as symmetric as the forward plan. EF Core generates down migrations for schema changes, but they do not restore data that a backfill overwrote. In practice, prefer a forward fix: write a small corrective script, deploy it, and keep the old column until you are confident the new path is stable. Azure SQL Database and Azure SQL Managed Instance give you point-in-time restore as a safety net, and that is a recovery mechanism rather than a rollback plan, so rehearse it rather than discovering it during an incident.

What changes on Monday morning

Adopting zero-downtime migrations shifts the work from the deployment window into the design phase, which is where it belongs. Expand early, contract late, backfill in batches outside the migration transaction, and give one pipeline step the authority to touch production schema.

The habit that pays off fastest is writing the expand migration and the contract migration as two separate pull requests with a scheduled gap between them. It forces the question of what is still reading the old shape into the open, and it makes the rollback window a deliberate choice rather than an accident of deploy timing. Teams that adopt it usually find release approvals become quieter, because the migration no longer competes for attention with the code review.

For teams in Australia juggling end-of-financial-year close, seasonal retail peaks and offshore engineering support, that quiet is worth having. The schema change lands once, the application keeps serving, and the arvo deploy window stays a window rather than a starting gun.

The Leela Ambience Convention Hotel

1, CBD, Maharaj Surajmal Road, Near Yamuna Sports Complex, Delhi, 110032

KNOW MORE

GENERAL QUERIES


Manish Tewatia

+91-9718-431-042

TICKET QUERIES


Atul Gupta

+91-9910-125-804