This document provides an overview of managing databases using Entity Framework Core and Code First Migrations. It discusses using the Fluent API for mapping entity classes to database tables. Code First Migrations allows managing the development cycle between code and the database by generating scripts to synchronize schema changes. Migrations create snapshots of the database that allow migrating and scripting SQL changes between different points in development.
Five Enterprise Development Best Practices That EVERY Salesforce Org Can UseSalesforce Developers
In any environment, non-existent or ad-hoc standards greatly contribute to technical debt. Join us as we explain why Salesforce's multi-tenant architecture and its platform and governor limits make managing technical debt in the App Cloud so critical. You'll discover five best-practices that can make an immediate impact on the maintainability and scalability of your org.
Spring Frame Work
Introduction to Spring Framework for Enterprise
IoC means Inversion of Container
Spring is the most popular framework which is development website and web design and development.
Oracle SQL Developer Top 10 Tips & TricksJeff Smith
Oracle SQL Developer product manager Jeff Smith shares his top 10 tips for boosting productivity and saving time while working with the Oracle Database IDE.
La vita nella corsia di sorpasso; A tutta velocità, XPages!Ulrich Krause
Using XPages out of the box lets you build good looking and well performing applications. However, as XPage applications become bigger and more complex, performance can become an issue and, if it comes to scalability and speed optimization, there are a couple of things to take into consideration. Learn how to use partial refresh and partial execution mode and how to monitor its execution using a JSF LifeCycle monitor to avoid multiple re-calculation of controls. We will show tools that can allow you to profile your code, readily available from OpenNTF, along with a demonstration of how to use them to improve the speed of your code. Still writing SSJS and encounter a significant slow down when using Script Libraries? See, how you can improve the speed of your application using JAVA instead of JS, JSON and even @formulas.
Relatore per la sessione:
Ulrich Krause
Five Enterprise Development Best Practices That EVERY Salesforce Org Can UseSalesforce Developers
In any environment, non-existent or ad-hoc standards greatly contribute to technical debt. Join us as we explain why Salesforce's multi-tenant architecture and its platform and governor limits make managing technical debt in the App Cloud so critical. You'll discover five best-practices that can make an immediate impact on the maintainability and scalability of your org.
Spring Frame Work
Introduction to Spring Framework for Enterprise
IoC means Inversion of Container
Spring is the most popular framework which is development website and web design and development.
Oracle SQL Developer Top 10 Tips & TricksJeff Smith
Oracle SQL Developer product manager Jeff Smith shares his top 10 tips for boosting productivity and saving time while working with the Oracle Database IDE.
La vita nella corsia di sorpasso; A tutta velocità, XPages!Ulrich Krause
Using XPages out of the box lets you build good looking and well performing applications. However, as XPage applications become bigger and more complex, performance can become an issue and, if it comes to scalability and speed optimization, there are a couple of things to take into consideration. Learn how to use partial refresh and partial execution mode and how to monitor its execution using a JSF LifeCycle monitor to avoid multiple re-calculation of controls. We will show tools that can allow you to profile your code, readily available from OpenNTF, along with a demonstration of how to use them to improve the speed of your code. Still writing SSJS and encounter a significant slow down when using Script Libraries? See, how you can improve the speed of your application using JAVA instead of JS, JSON and even @formulas.
Relatore per la sessione:
Ulrich Krause
Angular jS Introduction by Google
A to Z angular introduction about Angular Framework which is single page application.
Angular JS and angular is very important for single page applications.
Introducing domain driven design - dogfood con 2018Steven Smith
DDD provides a set of patterns and practices for tackling complex business problems with software models. Learn the basics of DDD in this session, including several principles and patterns you can start using immediately even if your project hasn't otherwise embraced DDD. Examples will primarily use C#/.NET.
Optimus XPages: An Explosion of Techniques and Best PracticesTeamstudio
Are you starting a new XPages project, but not sure it’s going to be done right the first time? Do you have an existing application that doesn’t seem to have that “X” Factor? In this webinar, John Jardin demonstrates how XPages developers can apply proven techniques and best practices to take their applications to a game-changing level.
You'll learn how to:
-Rapidly develop responsive applications,
-Improve user experience and response times with background and multi-threaded operations,
-Keep your XPages lightweight with code injection,
-Create scheduled tasks the XPages way,
-And much more.
Design Pattern Mastery - Momentum Dev Con 19 Apr 2018Steven Smith
Design patterns help developers and teams solve problems using proven approaches. In this talk, you'll learn how to solve a series of real world problems by applying patterns. Not only do patterns help individual developers solve particular problems, but they also enable teams to discuss design decisions using a richer, more descriptive language. By the end, you'll have some concrete tools you can apply, and hopefully the desire to master more patterns as you continue to improve!
Salesforce Coding techniques that keep your admins happy (DF13)Roy Gilad
Do you want to spend more time developing new and exciting features, and less time maintaining existing code when a field is added or an error message needs to change? Then keep yourself and your Administrator happy by coding to anticipate these changes using Custom Settings, Field Sets, and Labels.
Source code is available at:
https://gist.github.com/RoyGilad
This presentation was presented by Roy Gilad at Dreamforce 2013
iBATIS in other words is an additional layer of indirection between the classes and the tables allowing it in more flexibility in how classes and tables are mapped with out making any changes to the Data model and the Object model. The layer of indirection here is the SQL.
Description of the Java platform (languages, runtime libraries, execution environments) and how to write cross platform portable Java code (mobile, desktop, server, iot, ...).
These are the slides from my talk at the Norwegian Developer conference in Oslo 2013 on why unit testing is not necessarily the best way to test our code.
JavaScript Frameworks and Java EE – A Great MatchReza Rahman
The sea change in JavaScript frameworks is shifting the pendulum away from today's thin-client based server-side web frameworks like Spring MVC and JSF to JavaScript powered rich clients. With strong support for REST, WebSocket and JSON, Java EE is well positioned to adapt to this landscape.
In this heavily code driven session, we will show you how you can utilize today's most popular JavaScript frameworks like AngularJS and React to utilize the core strengths of Java EE using JAX-RS, WebSocket, JSON-P, JSON-B, CDI and Bean Validation.
Data normalization across API interactionsCloud Elements
With Vineet Joshi, CTO and Co-founder of Cloud Elements
Vineet discusses the normalization of data and similar domain models so it can uniformly act with end points that consume data of the same types.
Doing this declaratively instead of programmatically, the benefit is that once you have declared the transformation configuration of a given type of data, interaction between different endpoints is possible for the same type of data in endpoint specific formats.
Angular jS Introduction by Google
A to Z angular introduction about Angular Framework which is single page application.
Angular JS and angular is very important for single page applications.
Introducing domain driven design - dogfood con 2018Steven Smith
DDD provides a set of patterns and practices for tackling complex business problems with software models. Learn the basics of DDD in this session, including several principles and patterns you can start using immediately even if your project hasn't otherwise embraced DDD. Examples will primarily use C#/.NET.
Optimus XPages: An Explosion of Techniques and Best PracticesTeamstudio
Are you starting a new XPages project, but not sure it’s going to be done right the first time? Do you have an existing application that doesn’t seem to have that “X” Factor? In this webinar, John Jardin demonstrates how XPages developers can apply proven techniques and best practices to take their applications to a game-changing level.
You'll learn how to:
-Rapidly develop responsive applications,
-Improve user experience and response times with background and multi-threaded operations,
-Keep your XPages lightweight with code injection,
-Create scheduled tasks the XPages way,
-And much more.
Design Pattern Mastery - Momentum Dev Con 19 Apr 2018Steven Smith
Design patterns help developers and teams solve problems using proven approaches. In this talk, you'll learn how to solve a series of real world problems by applying patterns. Not only do patterns help individual developers solve particular problems, but they also enable teams to discuss design decisions using a richer, more descriptive language. By the end, you'll have some concrete tools you can apply, and hopefully the desire to master more patterns as you continue to improve!
Salesforce Coding techniques that keep your admins happy (DF13)Roy Gilad
Do you want to spend more time developing new and exciting features, and less time maintaining existing code when a field is added or an error message needs to change? Then keep yourself and your Administrator happy by coding to anticipate these changes using Custom Settings, Field Sets, and Labels.
Source code is available at:
https://gist.github.com/RoyGilad
This presentation was presented by Roy Gilad at Dreamforce 2013
iBATIS in other words is an additional layer of indirection between the classes and the tables allowing it in more flexibility in how classes and tables are mapped with out making any changes to the Data model and the Object model. The layer of indirection here is the SQL.
Description of the Java platform (languages, runtime libraries, execution environments) and how to write cross platform portable Java code (mobile, desktop, server, iot, ...).
These are the slides from my talk at the Norwegian Developer conference in Oslo 2013 on why unit testing is not necessarily the best way to test our code.
JavaScript Frameworks and Java EE – A Great MatchReza Rahman
The sea change in JavaScript frameworks is shifting the pendulum away from today's thin-client based server-side web frameworks like Spring MVC and JSF to JavaScript powered rich clients. With strong support for REST, WebSocket and JSON, Java EE is well positioned to adapt to this landscape.
In this heavily code driven session, we will show you how you can utilize today's most popular JavaScript frameworks like AngularJS and React to utilize the core strengths of Java EE using JAX-RS, WebSocket, JSON-P, JSON-B, CDI and Bean Validation.
Data normalization across API interactionsCloud Elements
With Vineet Joshi, CTO and Co-founder of Cloud Elements
Vineet discusses the normalization of data and similar domain models so it can uniformly act with end points that consume data of the same types.
Doing this declaratively instead of programmatically, the benefit is that once you have declared the transformation configuration of a given type of data, interaction between different endpoints is possible for the same type of data in endpoint specific formats.
Unified Modeling Language (UML) is a modeling language, used for design. Designed based on OMG Standard, Object this helps to express and design documents, software. This is particularly useful for OO design. Here is a brief tutorial that talks about UML usage.
There are lots of libraries and frameworks you can use when building browser based JavaScript applications. Probably the most popular library is jQuery. But while jQuery makes it easy to write cross browser user interface code that manipulates the DOM it’s UI focus makes it less then perfect for large business applications. One of the JavaScript based MVC frameworks that has been gaining a lot of popularity for creating business applications is AngularJS. Wen using AngularJS you get the benefit of a powerful data-binding framework that guides you towards a proper application model with a proper separation between the UI layer and the business layer. It also contains a powerful dependency injection framework making code much more testable than before.
In this session Maurice de Beijer will show you how to get started with AngularJS and how productive you can be when creating line of business applications.
AWS Summit Singapore - Managing a Database Migration Project | Best PracticesAmazon Web Services
Blair Layton, Business Development Manager - Database, APAC, AWS
The AWS Database Migration Service (DMS) and AWS Schema Conversion Tool (SCT) help lower costs, risks and the duration of your database migration and data replication projects but, how do you use them to maximum effect? This session will discuss some of the best practices that AWS has learned through our own Professional Services engagements and from customers who have shared their experience.
AWS Summit Singapore Webinar Edition | Architecting a Serverless Data Lake on...Amazon Web Services
ข้อมูลเชิงลึกของลูกค้าและ Machine Learning (Level 200 -300): การสร้าง Data Lake แบบไร้เซิร์ฟเวอร์บน AWS
ย้ายเลย! ย้ายข้อมูลไปยัง AWS (ระดับ 200): จัดการโครงการย้ายข้อมูล DB ด้วยวิธีที่ดีที่สุด
- Customer Insights and Machine Learning (Level 200 -300) | Architecting a Serverless Data Lake on AWS
- Move It! Migrating to AWS (Level 200) | Managing a DB Migration Project - Best Practices
Overview SAP BO components, SAP BO Architecture, 16 reporting flavour of SAP BO,
More details: (blog: http://sandyclassic.wordpress.com ,
linkedin: https://www.linkedin.com/in/sandepsharma )
Practical management of development & QA environments for SharePoint 2013SharePointRadi
Speakers: Ognyan Guglev & Radi Atanassov
In this session we will share how we maintain our environments for development, quality assurance and demonstration purposes. We've put in a lot of thought into optimising what we do and to deliver a highly-available, performing experience to our delivery teams.
For our work we have over 90 farms, so the challenges in maintaining them are not insignificant. Due to advances in the SharePoint platform we believe it is becoming increasingly difficult to maintain SharePoint environments for every project, client or product. We have a strong requirement to be flexible and efficient on hardware and at the same time be able to spawn development environments on demand. Automation here with SCVMM is key to a sustainable work front.
We will discuss our goals as a consultancy company, how we deal with licenses, whether we prefer centralised or decentralised team environments, how to automate VM's with Service Center Virtual Machine Manager, how to deal with Microsoft SQL and Active Directory, DNS and IP addresses, what we do to make the developer's time as productive as possible and a whole set of other tips and tricks we put in place. We will also share our Apps development and Office 365 development landscapes.
Overall, this session is infrastructure focused, but will be valuable and practical both for administrators and developers, it will cover experiences for both sides of the spectrum.
Enterprise Data Integration for Microsoft Dynamics CRMDaniel Cai
This is the deck that I used for my presentation for XrmVirtual on Apr 9, 2013, which discusses various options that you may have for Microsoft Dynamics CRM data migration and integration.
By talking about Microsoft's journey to Cloud cadence, this talk goes through all the DevOps practices such as Infrastructure as Code, CI/CD, Release Management and Hypothesis Driven Development.
It also introduces the impact of Docker and PaaS in DevOps.
Cost is often the conversation starter when customers think about moving to the cloud. AWS helps lower costs for customers through its “pay only for what you use” pricing model, frequent price drops, and pricing model choice to support variable & stable workloads. In this session, you will learn about the financial considerations of owning and operating a traditional data center or managed hosting provider versus utilizing AWS. We will detail our TCO methodology and showcase cost comparisons for some common customer use-cases. We’ll also cover a few AWS cost optimization areas, including Spot and Reserved Instances, EC2 Auto Scaling, and consolidated billing.
Presenter:
Amit Sharma, Solution Architect, Amazon Internet Services
Krishnenjit Roy, Director IT Operations, Freshdesk
Metadata Modeling Best Practices with IBM Cognos Framework ManagerSenturus
Learn to implement multi-tiered metadata, row-level security using session parameters, Dynamic Query Mode (DQM) and JDBC for OLAP Over Relational (OOR) or Dimensionally Modeled Relational (DMR) packages. View the webinar video recording and download this deck: http://www.senturus.com/resource-video/metadata-modeling-best-practices/?rId=2992.
Learn the benefits of the dimensional package from the user’s perspective, as our expert trainer unravels the mysteries of JDBC and the benefits of the DQM.
Our comprehensive, resource library includes 150 FREE resources including technology-Senturus, a business analytics consulting firm, has a resource library with hundreds of free recorded webinars, trainings, demos and unbiased product reviews. Take a look and share them with your colleagues and friends: http://www.senturus.com/resources/.
How to Create Map Views in the Odoo 17 ERPCeline George
The map views are useful for providing a geographical representation of data. They allow users to visualize and analyze the data in a more intuitive manner.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
The Indian economy is classified into different sectors to simplify the analysis and understanding of economic activities. For Class 10, it's essential to grasp the sectors of the Indian economy, understand their characteristics, and recognize their importance. This guide will provide detailed notes on the Sectors of the Indian Economy Class 10, using specific long-tail keywords to enhance comprehension.
For more information, visit-www.vavaclasses.com
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
4. Data Annotations vs Fluent API
• Why use data annotations (attributes)?
– Simple, works well for basic scenarios
– Some like attributes where they affect properties
– Integrates with MVC validation
• Why use Fluent API?
– Keeps domain classes clean - configuration in separate section
– More supported operations (advanced mappings, datetime precision, fixed
length and non-Unicode strings, etc)
– Using view models for views? Use Fluent for domain entities
– Fluent API allows very readable method cascading
• builder.Entity<Album>().Property(t => t.Name).IsRequired().HasMaxLength(60);
5. Separate Fluent & Data Annotations
• EF recognizes subset
– StringLength
– Range
– Required
– MinLength
– MaxLength
• This works, but purists may have a problem
– Mixes persistence, presentation, and validation logic
6. Using Fluent API without Data Annotations?
• How would we validate then?
• We would
– Map view model to Entity
– Save Entity
– Catch DbEntityValidationException
– Add errors to ModelState
• See code comments
7. What does Fluent Api support?
• Easily remapping legacy names to code names
– Customer.Unique_ID Customer.CustomerId
– ShipInfo.Unique_ID to ShipInfo.ShipInfoId
• Single type to multiple tables, vice versa
• Schema mapping
• Mapping table per type, table per class, entity & table splitting
• keys, length, index
10. Remapping legacy tables
• Often legacy databases use ‘bad’ naming conventions
• Fluent API allows mapping scenarios
– Any column name to any field
– Table per type - subclasses have their own table ex Animal, Cat, Dog
– Table per class
– Entity splitting – multiple entities per table
– Table Splitting- multiple tables per entity
13. Traditional DB/Code Management
• We can manage databases for our apps in many ways
• Create code, write sql, create database
• Create database, write code, script database
15. What’s the problem?
• Keeping code and database in sync was issue
• Managing versions requires significant manual effort
• Typically ‘undo’ scripts aren’t created
• Ensuring app version matches database version
– Ever forget/lose a script?
• Fix issues (many ‘went to production’ bugs)
– string customer; didn’t validate to varchar(50)
16. What would help?
• Our apps run code that maps between database and code
– Definition of ORM
• We write code, would be nice to have feature to manage scripts
– This is where Code First applies
17. What are code first migrations?
• Provides a way to manage dev cycle between code & db
• Allows you to
– Create point in time snapshots as ‘migrations’
– Generate scripts to sync code and database
– Allows migrating & scripting SQL between various snapshots
– Including upgrading and downgrading
• Can this help for existing databases?
– Code or reverse engineer into models, add migration
– Add-Migration Initial –IgnoreChanges
18. How do Code First Migrations work?
• Code created under default Migrations folder
• Each new Migration (add-migration) adds new code
• Can overwrite/update existing migrations
– Add-migration AddedShipInfo
– Developer adds more properties to ShipInfo class
– Add-migration AddedShipInfo (updates existing migration)
• Push to database
– Update-database -script
• Can configure automatic migrations
22. Resources
• Code first migrations in team environments
– https://msdn.microsoft.com/en-us/data/dn481501.aspx
• Configuring/Mapping Properties and Types with the Fluent API
– https://msdn.microsoft.com/en-us/data/jj591617.aspx
Database reverse engineering uses Fluent API & Data Annotations
MVC validation understands annotations
The precision of a DateTime property
The precision and scale of numeric properties
A String or Binary property as fixed-length
A String property as non-unicode
The on-delete behavior of relationships
Advanced mapping strategies
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Edit(AlbumEditViewModel albumViewModel)
{
//If our ViewModel is valid based on DataAnnotations
if (ModelState.IsValid)
{
//Copy view model to entity
var album = new Album() {
AlbumArtUrl = albumViewModel.AlbumArtUrl,
AlbumId = albumViewModel.AlbumId,
ArtistId = albumViewModel.ArtistId,
GenreId= albumViewModel.GenreId,
//Note lack of price in view model
Price= 9.99m,
Title = albumViewModel.Title
}
//Attach it and save it
db.Entry(album).State = EntityState.Modified;
try
{
db.SaveChanges();
return RedirectToAction("Index");
}
catch (DbEntityValidationException ex)
{
foreach (var result in ex.EntityValidationErrors)
{
foreach (var error in result.ValidationErrors)
{
ModelState.AddModelError(error.PropertyName, error.ErrorMessage);
}
}
return View(album);
}
}
return View(album);
}
private class AlbumEditViewModel
{
public int AlbumId { get; set; }
public int GenreId { get; set; }
public int ArtistId { get; set; }
[StringLength(50)]
public string Title { get; set; }
[StringLength(1024)]
public string AlbumArtUrl { get; set; }
}
protected override void OnModelCreating(DbModelBuilder modelBuilder) { //Configure domain classes using modelBuilder here base.OnModelCreating(modelBuilder); }
Want to specify a foreign key and rename it? (don’t want to rename, don’t use map but then its Artist_ArtistID I believe)
modelBuilder.Entity<Album>()
.HasRequired<Artist>(s => s.Artist)
.WithMany(s => s.Albums)
.Map(o=>o.MapKey("ArtistId"));
Open MVC project
Add below into context
public MusicContext()
{
Database.SetInitializer(new DropCreateDatabaseAlways<MusicContext>());
}
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Entity<Album>().ToTable("AlbumInfo", "dbo");
modelBuilder.Entity<Album>().Property(e => e.Title).HasColumnName("Album_Title");
}
Open up connection in Visual Studio Server Manager – Data Connections
Right click on db, browse in sql server object explorer
Right click on db in SSOE and select Create New Project. Stress this isn’t part of EF Migrations, but one method of managing those scripts.
Talk about having to do this anytime your database changes. Do you change DB then script? Do you change SQL, then apply to DB? Now you need either bits and pieces of sql or
Intellisense
Enable-migrations – talk about issue if we have Identity installed into an app.
http://stackoverflow.com/questions/13469881/how-do-i-enable-ef-migrations-for-multiple-contexts-to-separate-databases
Talk about the initial state. The database is created (review of first module) Problem. How do we script this database?
Script initial database update-database –script –targetmigration $InitialDatabase
Add some fields
Add migration
Add some fields
Add new migration
Generate down script: update-database -script -SourceMigration XXXXX –TargetMigration InitialCreate
Need to specify the full name of the configuration class you are pointing too
Enable-Migrations -ContextTypeName TriviaMVCPlaya.Models.ApplicationDbContext
Enable-Migrations -ContextTypeName TriviaMVCPlaya.Models.ApplicationDbContext -MigrationsDirectory MigrationsForIdentity
add-migration Something -ConfigurationTypeName TriviaMVCPlaya.Migrations.Configuration
Add a decimal Cost field to Album class
Add-migration AlbumCost
Customize
Price = c.Decimal(nullable: false, precision: 18, scale: 2, defaultValue:9.99m),
Point to existing database file.
Reverse engineer. Note that this process creates data annotations (to work with validation) AND fluent api.
enable-migrations
Update-database –Add-Migration Initial –IgnoreChanges
script shows nothing (or migrations?)
Run app
Add a new field, add new migration, update database. We now have migrations table