-
Log Queries and Database Commands with LINQ to Entities
In Microsoft Entity Framework; you can use requests for easier logging of the database operations that are executing. In this video; Hilton Giesenow demonstrates how to log queries and database commands with LINQ to Entities.
-
Table Per Hierarchy Data Models with Entity Framework
In Microsoft Entity Framework; you can use a derived base class to share properties across entities. In this video; Hilton Giesenow uses the MapInheritedProperties operation to map inherited properties from the base class.
-
Table Per Type Data Models with Entity Framework
You can use Microsoft Entity Framework to deal with one of the more complex scenarios in object relational mapping – dealing with object inheritance hierarchies. Inheritance can be implemented using the code-first approach or the database-first approach. In this video; Hilton Giesenow discusses the table per type data models.
-
.NET Assembly Interning for Production Environments
In Microsoft Entity Framework; the .NET Framework's interning feature allows you to share assemblies across multiple servers and applications using symbolic links; reducing both memory requirements and load time. In this video; Hilton Giesenow demonstrates how to identify interning opportunities and intern eligible assemblies using the aspnet_intern.exe tool.
-
Building Web Sites and APIs with Entity Framework
Microsoft Entity Framework simplifies data access by integrating with ASP.NET MVC and Web API applications to handle database interaction. In this video; Hilton Giesenow demonstrates how to generate and configure the scaffolding for an application's MVC and Web API controllers.
-
Code-Based Configuration
In Microsoft Entity Framework; you can build; deploy; and manage applications through an open and flexible entity framework cloud platform. In this video; Hilton Giesenow demonstrates how to configure an entity framework data provider for the cloud.
-
Code-First Entity Framework From an Existing Database
Microsoft Entity Framework supports building Database-First and Code-First Entity models. In this video; Hilton Giesenow demonstrates how to build Code-First Entity models around existing databases by adding an ADO.NET Entity Data Model and by reverse engineering a Code-First Entity model.
-
Concurrency in Entity Framework
In Microsoft Entity Framework; you can configure your system to deliver an alert whenever there's a possibility of concurrency errors; for example; when users are editing properties simultaneously. In this video; Hilton Giesenow demonstrates how to handle concurrency in Entity Framework.
-
Connection Resiliency Features
In Microsoft Entity Framework; you can make use of some of the default execution strategies to get connection resiliency. In this video; Hilton Giesenow uses SQLAzureExecutionStrategy to explore how exceptions are handled automatically.
-
Creating a DbContext Using an Open Connection
In Microsoft Entity Framework; multiple contexts can share a single SQL connection to reduce the resource load on the actual server. In this video; Hilton Giesenow uses a Boolean value to indicate if a context owns a connection.
-
Custom Code Generation in Entity Framework
Microsoft Entity Framework's Entity Designer and Entity Framework Power Tools generate EDMX-format ADO.NET Entity models. In this video; Hilton Giesenow demonstrates how to customize code generated for an Entity model using a T4 code-generation strategy in Visual Studio.
-
Database Migrations (Basic)
You can use Microsoft Entity Framework to handle database migration either automatically or by creating a database manually. You can also update databases as needed. Using Entity Framework is useful because it ensures that it handles changes to the database over time; just as it built the database initially. In this video; Hilton Giesenow demonstrates how to perform database migrations.
-
Dependency Resolution in Entity Framework
In Microsoft Entity Framework; the dependency resolver capability is one way to change internal dependencies. In this video; Hilton Giesenow uses the built-in SingletonDependecyResolver to resolve specific dependencies inside of Entity Framework.
-
Downloading; Installing; and Updating Entity Framework
When working with Microsoft Entity Framework; you must ensure that you reference it appropriately. In this video; Hilton Giesenow uses Package Managers to download;install; and update Microsoft Entity Framework.
-
Entity Caching in Entity Framework
Microsoft Entity Framework supports entity caching through the DbContext; which allows database entities to be tracked; retrieved; updated; reattached; and saved. In this video; Hilton Giesenow demonstrates how to track; update; reattach; and save DbContext entities to the database.
-
Entity Change Tracking
Microsoft Entity Framework allows you to easily track any changes made to entities and their properties; and manage these changes within the database. In this video; Hilton Giesenow demonstrates how to implement Entity Framework change tracking.
-
Implementing Custom Code-First Conventions
When you're using the code-first approach with Microsoft Entity Framework; you can easily customize certain default configurations for the created model. In this video; Hilton Giesenow demonstrates the implementation of custom code-first conventions in Entity Framework.
-
Implementing Custom Code-First Database Mappings
When working with Microsoft Entity Framework; you can easily implement custom code-first database mappings. In this video; Hilton Giesenow demonstrates the two methods that can be used for performing this task: by decorating a class with attributes or by centralizing the actual database schema configurations inside of the model.
-
Implementing Custom Pluralization and Singularization
In Microsoft Entity Framework; you can implement custom pluralization and singularization properties to suit the requirements of your entries. In this video; Hilton Giesenow demonstrates how to implement custom pluralization and singularization properties with Entity Framework.
-
Implementing Transactions with Entity SQL
Microsoft Entity Framework allows you to simplify Entity SQL execution; creation; updating; and deletion operations by applying them within the context of a single transaction. In this video; Hilton Giesenow demonstrates how to implement transactions with Entity SQL using Entity Framework.
-
Implementing Transactions with LINQ To Entity Commands
In Microsoft Entity Framework; transactions are an essential part of working with data to ensure that operations are consistently applied. In this video; Hilton Giesenow demonstrates how to manage and apply transactions with LINQ to Entity commands using a bank account as an example.
-
Integrating Entity Framework with WCF
Microsoft Entity Framework supports the integration of Entity data models with WCF services. In this video; Hilton Giesenow demonstrates how to build and define services making use of the Entity Framework data model and share them across multiple projects.
-
Integrating Entity Framework with Web API
Microsoft Entity Framework supports interceptors that define methods called when an entity performs an action. In this video; Hilton Giesenow demonstrates how to use interceptors derived from an interceptor class to act on data saved; updated; or deleted from a database.
-
NGEN and Entity Framework Assemblies
In Microsoft Entity Framework; you can reference the Entity Framework libraries to speed up the actual load time of your application. In this video; Hilton Giesenow uses the ngen.exe tool to generate a native image for the EntityFramework and EntityFramework.SqlServer DLL libraries.
-
Pre-generating Views to Improve Performance
Microsoft Entity Framework supports the precompilation of an application's query and update views; reducing its startup costs. In this video; Hilton Giesenow demonstrates how to use Entity Framework's Power Tools feature to generate fresh views for an amended Entity model.
-
Preparing for Production Configurations
In Microsoft Entity Framework; you can perform live configuration-setting changes to prepare an application for production. In this video; Hilton Giesenow uses the transform command to set a new value for an existing attribute.
-
Reading Data with Entity SQL
In Microsoft Entity Framework; Entity SQL is a text based style of querying data. In this video; Hilton Giesenow demonstrates Entity SQL functionality; and provides examples on how to execute SQL queries.
-
Reading Data with LINQ To Entities
Microsoft Entity Frameworks allows data to be read to Entities with LINQ. This is done through the use of SQL databases; SQL queries; and operators. In this video; Hilton Giesenow demonstrates how to read and write data with Microsoft Entity Frameworks.
-
Under the Covers – Connection; Command; and Reader
In Microsoft Entity Framework; there are a number of ways to query data in the SQL database; including Connection; DataReader; and Command. In this video; Hilton Giesenow demonstrates these methods for querying data; allowing you to be more explicit about underlying SQL queries.
-
Understanding DbContext vs. ObjectContext
Microsoft Entity Framework provides two types of containers; the objectContext and the DbContext; that allow you to access and manage your databases. In this video; Hilton Giesenow discusses the applications of these two containers within the Entity Framework.
-
Understanding Deferred Query Execution
In Microsoft Entity Framework; Deferred Query Execution is a key concept within the framework. It can be particularly useful when using LINQ to Entities queries for Entity Framework. In this video; Hilton Giesenow demonstrates the core features of this process and the impact that it has on code.
-
Understanding IQueryable vs. IEnumerable
In Microsoft Entity Framework; when working with LINQ to Entities as part of Entity Framework; you need to be aware of LINQ types and the repercussions that these can have on your application. In this video; Hilton Giesenow demonstrates how to implement IQueryable and IEnumerable types using LINQ to Entities.
-
Understanding Lazy and Eager Loading
Two important concepts in Entity Framework are Lazy and Eager Loading. Lazy Loading is the default setting and is useful in accessing properties without a value from the SQL Database; but can have a major impact on performance. In this video; Hilton Giesenow explains the differences between Lazy and Eager Loading.
-
Understanding the EF Modeling Languages
Microsoft Entity Framework capabilities allow for the easy translation between the object and relational worlds; as well as the conversion of your application or query intentions into explicit SQL statements. In this video; Hilton Giesenow discusses the roles of the modeling languages involved in these functions of the Entity Framework.
-
Unit Testing When Using Entity Framework
Microsoft Entity Framework supports unit testing through a data context using in-memory data. In this video; Hilton Giesenow demonstrates how to build an ASP.NET MVC controller using a repository-type pattern; against which he tests the logic of an operation.
-
Updating Data with Entity SQL
The Microsoft Entity Framework can be used as a method to update data in a SQL Server database. In this video; Hilton Giesenow demonstrates how to use Entity SQL to update data in a database; including different methods for accomplishing this.
-
Updating Data with LINQ To Entities
In Microsoft Entity Framework; you are able to update data with LINQ to Entities; using operations and calls to execute data updates. In this video; Hilton Giesenow demonstrates how LINQ to Entities is used to update and delete data for various entities.
-
Using a Code-First Approach to EF Modeling
The Microsoft Entity Framework allows you to use three different approaches for modeling. In this video; Hilton Giesenow demonstrates the code-first approach to Entity Framework modelling.
-
Using a Database-First Approach to EF Modeling
The Microsoft Entity Framework allows you to use three different approaches for modeling. In this video; Hilton Giesenow demonstrates the database-first approach to Entity Framework modeling.
-
Using a Model-First Approach to EF Modeling
The Microsoft Entity Framework allows you to use three different approaches for modeling. In this video; Hilton Giesenow demonstrates the model-first approach to Entity Framework modeling.
-
Using Functions with LINQ To Entities
In Microsoft Entity Framework; a number of functions can be used when working with LINQ Entities allowing for complex functions to be easily streamlined and translated. In this video; Hilton Giesenow demonstrates the use of various functions within LINQ and SQL server.
-
Using Initializers and Factories
Microsoft Entity Framework supports a background DbContext initialization process that ensures that the database and runtime models match. In this video; Hilton Giesenow demonstrates Entity Framework's three out-of-the-box initializers; creates an initializer; turns off initialization; and implements the IDatabaseInitializer interface.
-
Using Stored Procedures with LINQ To Entities
In Microsoft Entity Framework; you can use stored procedures using a number of different approaches. In this video; Hilton Giesenow demonstrates how to use the Model or Database First and Code First approaches when using stored procedures with Entity Framework.
-
Validation in the DbContext
Microsoft Entity Framework supports the native validation of DbContext entities on the client and server sides. In this video; Hilton Giesenow demonstrates how to use Entity Framework data annotation; Fluent API; DbContext-level; and IValidatableObject interface validation methods.
-
What is the Entity Framework
The Microsoft Entity Framework is one of the leading object relational mappers in .NET; allowing you to easily map between the object oriented and the relational database worlds. In this video; Hilton Giesenow discusses the applications of the Microsoft Entity Framework.
-
Working with Asynchronous Entity SQL Commands
In Microsoft Entity Framework; you can use asynchronous operations to implement EntitySqlCommands or use entity commands to update the backend data source. In this video; Hilton Giesenow demonstrates how to interpret asynchronous and synchronous operations for direct commands in a database.
-
Working with Asynchronous LINQ To Entities Commands
In Microsoft Entity Framework; through LINQ to Entities; the Entity Framework provides methods you can use to make backend database interaction asynchronous. In this video; Hilton Giesenow demonstrates asynchronous methods; including FindAsync; FirstAsync; SingleOrDefaultAsync; ToListAsync; AsyncReadOperations; and AsyncWriteOperations.
-
Working with DbSet.AddRange/RemoveRange
In Microsoft Entity Framework; you can batch calls together to reduce the number of input/output calls that you need to make. In this video; Hilton Giesenow uses the AddRange method to pass in an IEnumerable set of entities that is operated on simultaneously.
-
Working with Non-Microsoft Databases
Microsoft Entity Framework supports the Microsoft SQL Server; Oracle; SQL CE; and SQLite database management systems. In this video; Hilton Giesenow uses the Setinitializer method to turn off database migration because not all database management systems support migration.
-
Working with SQL Azure
In Microsoft Entity Framework; you can automatically re-connect to a SQL Azure database. In this video; Hilton Giesenow uses an execution strategy to automatically retry to connect to the database when an exception occurs.
-
Working with the Entity Framework Power Tools
When using Microsoft Entity Framework within Visual Studio; you can utilize the Entity Framework Power Tools to improve your Visual Studio experience of working with Entity Framework. In this video; Hilton Giesenow demonstrates how to work with the tools to; for example; generate a code-first model or reverse-engineer a database.
-
Using SQL Queries
When querying data using NHibernate; the most basic way is to work with direct SQL queries. In this video; Roger Weiss uses a SQL method off the session interface to tell NHibernate where to map the query results.
-
Using Structured Queries
In NHibernate; you can use the criteria API to create powerful structured queries. In this video; Roger Weiss demonstrates how to use the CreateCriteria method to create a query using the ICriteria interface.
-
What is ?
NHibernate is a well known open source software development technology that enables data storage and retrieval in relational databases. In this video; Roger Weiss discusses what NHibernate is used for and some of the databases it supports.
-
A Comparison with Entity Framework
NHibernate and Entity Framework are two of the most popular object-relational mappers (ORMs); and with an understanding of their differences; .NET developers will be able to choose the appropriate technology when working with relational data. In this video; Roger Weiss compares the general; ORM specific and technical features of NHibernate with those of the Entity Framework.
-
Adding a Database and Assembly References
In Microsoft Visual Studio; you can easily add NHibernate assembly references; as well as a database; to a project. In this video; Roger Weiss demonstrates different ways to add NHibernate assembly references to a project and how to add and view a database.
-
Adding Mapping Assemblies to Configuration
The benefit of storing NHibernate configurations in an external file is that one can simply use a text editor to make changes without having to recompile the application. In this video; Roger Weiss demonstrates how to add mapping assemblies to configuration information.
-
Automapping
In NHibernate; you can do mappings via convention instead of configuration. In this video; Roger Weiss uses the AutoMap class to find the entities on which it must perform the auto mapping.
-
Bulk Operations Using HQL
NHibernate allows you to perform bulk operations efficiently when querying large sets of data in tables by using Hibernate Query Language (HQL). In this video; Roger Weiss demonstrates how to create a Query object using the HQL syntax; as well as how to use the executeUpdate() method with UPDATE and INSERT statements to execute bulk updates.
-
Callbacks
NHibernate supports the ILifecycle interface for providing callbacks that allow you to perform operations on a persistent entity class when the relevant lifecycle event is triggered. In this video; Roger Weiss demonstrates how to implement ILifecycle methods and receive callbacks from NHibernate; as well as how to prevent and operation by returning LifecycleVeto.Veto.
-
Configuring by Code
It's possible for you configure NHibernate to suit your needs by using code. In this video; Roger Weiss demonstrates how to call classes to configure NHibernate.
-
Configuring Using App.Config
When configuring NHibernate; the alternative to the XML Configuration file is to use an App.Config file. Steps in this process include declaring a new config session; referencing the NHibernate assemblies; and instantiating a new configuration class. In this video; Roger Weiss demonstrates how to configure NHibernate using App.Config.
-
Configuring Using XML
You can use an external XML configuration file to configure NHibernate to connect to a database. In this video; Roger Weiss demonstrates how to add an external configuration file to a project and then how to configure NHibernate to use a connection string in the file to connect to a specified database.
-
Controlling Changes via Transactions
NHibernate allows you to maintain consistency by using transactions to batch multiple operations and commit them as if they were a single unit with an "all-or-nothing" approach. In this video; Roger Weiss demonstrates how to execute multiple updates on database records using a transaction; commit the transaction; as well as roll back the transaction if a failure occurs.
-
Fluent Configuration
You can use Fluent as an alternative to NHibernate configurations. In this video; Roger Weiss demonstrates how to configure Fluent as a simpler option to working with NHibernate.
-
Fluent Mapping
Fluent NHibernate can be used as an alternative to XML mapping. In this video; Roger Weiss demonstrates how to create mappings using the Fluent interface; and by using code.
-
Grouping; Sorting and Limiting Query Results
NHibernate allows you to perform advanced filtering operations on a database using LINQ to NHibernate's querying capabilities that include grouping; sorting; and limiting results. In this video; Roger Weiss demonstrates how to use the OrderBy() and GroupBy() methods to order a filtered set; perform paging; and group the elements of a sequence.
-
Interceptors and Listeners
NHibernate supports a comprehensive eventing system that allows you to react to certain events as they occur; using Interceptors and Listeners. In this video; Roger Weiss demonstrates how to attach an Interceptor to override OnLoad and OnPrepareStatement events; and audit updates and inserts to the database by implementing the IPreUpdateEventListener and IPreInsertEventListener interfaces.
-
Mapping CRUD Behavior
NHiberate allows Create; Read; Update; and Delete (CRUD) actions on databases to be cascaded to associated entities. In this video; Roger Weiss demonstrates how NHibernate's Cascade.Persist and Cascade.Remove options enable update and delete operations to persist through related database entities.
-
Mapping for Concurrency
NHiberate allows databases updated by multiple users to resolve concurrency issues using pessimistic locking and optimistic concurrency. In this video; Roger Weiss demonstrates the features; benefits; and drawbacks of pessimistic locking and optimistic concurrency at the API and database level.
-
Mapping Identifiers
NHibernate provides a range of built-in generator classes that allow you to generate unique identifiers for persisting data. In this video; Roger Weiss demonstrates how to create tables implementing different primary key strategies; before mapping the identifiers and inserting entities into the database.
-
Mapping Inherited Models
NHiberate allows domain models comprising base class and subclass hierarchies to persist in the database. In this video; Roger Weiss demonstrates how NHibernate uses a discriminated database column to conditionally map an inheritance tree to a single database table.
-
Mapping Stored Procedures and Views
NHiberate is able to invoke stored database procedures or views and map the results to a domain object. In this video; Roger Weiss demonstrates how NHibernate uses the hibernate-mapping XML file and GetNamedQuery() method to map and invoke stored procedures.
-
Recommended Practices
NHibernate is a flexible solution offering various approaches to database mapping; and by following a few recommended techniques you'll be able to leverage its benefits. In this video; Roger Weiss demonstrates how to use an external configuration file; set up mappings; and practice recommended techniques when using LINQ query methods in an NHibernate session.
-
Saving One-to-Many Class Mappings
NHibernate allows you to maintain valid foreign key references and map one-to-many relationships where a single entity is related to many occurrences in another entity. In this video; Roger Weiss demonstrates how to insert a new record in one table and maintain a foreign key reference to another table using NHibernate.
-
Saving Simple Class Mappings
With existing class mappings in place; NHibernate allows you to easily insert; update; and delete records in a database. In this video; Roger Weiss demonstrates how to set up mappings; use the Save() and Flush() methods to insert new records; and update existing records using the Update() and SaveOrUpdate() methods within an NHibernate session.
-
Second Level Caching
In NHibernate; you can enable caching at entity and at query level so that it spans multiple sessions in the sessionFactory. In this video; Roger Weiss demonstrates how to use SQL in the console to monitor cached queries.
-
Setting Up an IDE; Tools; and Drivers
When getting started with NHibernate; you can use NuGet to download NHibernate binaries into a project; or you can download the binaries directly from the sourceforge website. To view tables within a database; you require a tool such as the SQL Toolbox. In this video; Roger Weiss demonstrates how to download NHibernate binaries and install the SQLite Toolbox add-on.
-
Setting Up Master-Detail Mappings
In NHibernate; it is possible to perform complex mapping by using master-detail mapping which allows you to execute multiple tasks. In this video; Roger Weiss demonstrates how to create a many-to-one master-detail mapping relationship.
-
Single Table Mapping
To retrieve data from a database; NHibernate must create a map between tables. To do this you need an entity class and a mapping file. In this video; Roger Weiss demonstrates how to create a single table map.
-
The Active Record Pattern
NHiberate supports the active record architectural pattern; whereby in-memory data objects are stored in and accessed from database tables according to their own logic. In this video; Roger Weiss demonstrates how to install; initialize; and implement the Castle ActiveRecord pattern.
-
The Code First Approach
NHibernate supports the Code First approach that allows you to define your models and class mappings in code; thereby providing a contract for schema generation to the database. In this video; Roger Weiss demonstrates how to establish mappings; configure a connection to an empty database; and create tables in the database using Code First principles in NHibernate.
-
The Database First Approach
NHibernate supports the Database First approach; whereby models and mapping files are created from an existing database. In this video; Roger Weiss uses the NHibernate Mapping Generator (NMG) utility to generate NHibernate mapping files and their relevant entity classes; before including the models and mappings into a console application and querying the database.
-
The Repository Pattern
In NHibernate; the Repository Pattern manages the interaction between the domain and the data mapping layers. It allows you to add; delete; or modify objects on the Repository; as well as perform queries. In this video; Roger Weiss demonstrates how to abstract the NHibernate-specific persistence layer using a Repository Pattern.
-
The Unit of Work Pattern
In NHibernate; the UnitOfWork is responsible for persisting the changes that it has accumulated as one bulk operation. In this video; Roger Weis demonstrates how to use the UnitOfWork Pattern together with a Repository Pattern to commit and rollback transactions.
-
Using HQL Queries
In NHibernate; you can use HQL (Hibernate Query Language) to query your database in a fashion that is agonistic to your database. In this video; Roger Weiss uses the join command to explore a complex HQL example that includes a CreateQuery method; result transformer; and a foreach loop.
-
Using IoC Containers to Instantiate Sessions
NHiberate allows IoC (inversion of control) containers to instantiate sessions using dependency injection. In this video; Roger Weiss demonstrates how to register classes managing operations against a domain with an IoC which; when instantiated; inject the required dependencies.
-
Using LINQ Queries
NHibernate supports Language-Integrated Query (LINQ); allowing you to write queries against strongly typed data sources using LINQ query extension methods. In this video; Roger Weiss demonstrates how to use LINQ in the context of NHibernate to return a list of results; perform eager fetching; and execute a subset query.
-
Using Mapping Attributes
Instead of the NHibernate XML mapping file you can use NHibernate Mapping Attributes to help alleviate the use of your mapping file. In this video; Roger Weiss demonstrates how to implement mapping attributes by using the Hbm Serializer class.
-
Using in a WCF Service
When using NHibernate in a WCF Service; you can tell NHibernate where to store the session by specifying the default session context. In this video; Roger Weiss demonstrates how to integrate NHibernate into a WCF application by storing the session in the operation context.
-
Using in an ASP.NET Web Forms Application
You can use NHibernate in a classic web form application. In this video; Roger Weiss uses the session per request pattern to open a session for every HTTP request.
-
Using in ASP.NET MVC and WebAPI Applications
When using NHibernate in an ASP.NET MVC or Web API Application; you can use the Action Filters to attach code to an action when it's about to be executed; or when it's finished executing. In this video; Roger Weiss demonstrates how to integrate NHibernate into a web project; using the Action Filters.
-
Using QueryOver
NHibernate QueryOver is an up-to-date API that provides a type-safe wrapper on the existing Criteria API; so you can use extension methods and lambda expressions to eliminate magic strings from your queries. In this video; Roger Weiss demonstrates how to use lambda expressions with the QueryOver() method when selecting and adding joins to queries.
-
Logging Activity
NHiberate allows SQL and other output to be logged through the Hibernate configuration file; NHibernate configuration code; or log4net logging tool. In this video; Roger Weiss demonstrates how to enable logging by specifying the appropriate NHibernate properties; and then installs and configures the log4net logging tool.
-
Mapping by Code
In NHibernate; you can now use NHibernate's native mapping by code as an alternative to NHibernate mapping files. In this video; Roger Weiss uses an XML mapping file to compare code with a mapping by code file.
-
Mapping Column and DataTypes
NHibernate maps to and converts complex database types to equivalent .NET types; and maps and converts complex .NET types to compatible database types. In this video; Roger Weiss uses NHibernate's mapping capabilities to write data to and from a database.
-
Input Validation
NHibernate allows you to implement custom validation of entities before they reach the database using the NHibernate Validator framework from NuGet. In this video; Roger Weiss demonstrates how to define constraints; set up and instantiate the validator engine; and return validation messages when rules are violated.
-
Unit Testing
NHiberate allows unit tests using fake external resources to be run on class objects and their methods to ensure their functionality. In this video; Roger Weiss uses a fake NHibernate ISessionFactory to test and troubleshoot methods of an object class.
-
Deleting Data
NHibernate allows you to easily delete objects with a specified Id from a database using mappings. In this video; Roger Weiss uses data loaded into a Chinook database; to demonstrate how to delete individual or multiple records using the session.Delete() method followed by flushing the session.
-
Table Per Class Data Models with Entity Framework
In Microsoft Entity Framework; you can implement inheritance using a table per hierarchy approach whereby the actual hierarchy of classes or entities in your application will be represented by a single table in the actual underlying database. In this video; Hilton Giesenow demonstrates how the table per class data model can be used when updating databases.