Ever wondered what if we separate our models classes into a different project and access them via other Project. How does it look in Code? Yes, it's the time to see it in action with SBerry. Before we begin, let... Continue Reading →
Inner join can lead to misleading result set which sometimes can cause mess if they are not handled meticulously.
Sberry wants 'Delineate' to be not equal to DELINEATE which is again not equal to dElINeate and sort them based on their case and culture. How to do...? Here comes the StringComparision enum which we can pass to the comparison, equal... Continue Reading →
With Sberry, let's dive in to clear out the confusion around the Add, Attach and Entry, Create and New methods of DbSet and DbContext of Entity framework. Add public virtual object Add( object entity) Simply put Adds the entity to... Continue Reading →
The default Entity framework conventions can be overridden through two methods 1.Data Annotations 2.Fluent API. Entities and properties are configured through EntityTypeConfiguration. The ModelBuilder class provides Enity (),which return EntityTypeConfiguration object which is used in configuration. We can separate out... Continue Reading →