Click here to Skip to main content
15,888,610 members
Everything / Fluent

Fluent

Fluent

Great Reads

by Fred Song (Melbourne)
In this article, I want to show how to build a Single Page Application – MasterChef with ASP.NET Core MVC, Fluent Hibernate, and Angular JS.
by Marc Clifton
Write readable integration tests that exclusively call Web APIs
by Daniele Fontani
Sometimes, for learning, we need to find excuses to start a new project
by Fred Song (Melbourne)
In this article I talk about how to use ASP.NET Core MVC, Fluent NHibernate and Angular JS to implement a CRUD SPA (Single Page Application).

Latest Articles

by Marc Clifton
Write readable integration tests that exclusively call Web APIs
by Daniele Fontani
Sometimes, for learning, we need to find excuses to start a new project
by Fred Song (Melbourne)
In this article, I want to show how to build a Single Page Application – MasterChef with ASP.NET Core MVC, Fluent Hibernate, and Angular JS.
by saadishahin
A quick psedu-code for EF Core that's equivalent to modelBuilder.Configurations.AddFromAssembly in entity framework

All Articles

Sort by Score

Fluent 

6 Feb 2020 by Fred Song (Melbourne)
In this article, I want to show how to build a Single Page Application – MasterChef with ASP.NET Core MVC, Fluent Hibernate, and Angular JS.
22 May 2021 by Marc Clifton
Write readable integration tests that exclusively call Web APIs
2 Jul 2020 by Daniele Fontani
Sometimes, for learning, we need to find excuses to start a new project
3 Oct 2016 by Fred Song (Melbourne)
In this article I talk about how to use ASP.NET Core MVC, Fluent NHibernate and Angular JS to implement a CRUD SPA (Single Page Application).
25 Oct 2015 by Fitim Skenderi
In this article I will concentrate on how by using a specific functional structure called monad we can remove a lot of boilerplate code.
15 Jul 2020 by ||Memo||
Guys i found the solution. public class ValidatorTool { public static void FluentValidate(IValidator validator, object entity) { var context = new ValidationContext(entity); var result...
1 Jan 2022 by Member 9614352
I am new to Nhibernate and I don't know how to create a polymorphic relationship/mappings in my application. I have tried different solutions and tutorials but unfortunately I am still not been able to figure out how can I make this work. Following is my database structure in which...
23 Mar 2017 by levelnis
Part 3 of a series on configuring and using Fluent Validation and Autofac
9 Aug 2010 by Andre Vianna
Guidelines to Fluent Interface design in C# - Part 3
23 Aug 2010 by rudigrobler
Mahhala - Fluent Ribbon Control Suite
28 Oct 2010 by Gil Fink
Update Configurations without Replace with Enterprise Library 5 Fluent Configuration API
23 Jan 2015 by Wendelius
Based on the error message you getForeign key (FK6482F24702A58C9:Category [fkCategory, pkCategory])) must have same number of columns as the referenced primary key (Skill [pkSkill])The definition for the foreign key isn't as you described. Instead you have 2 columns in the foreign key...
31 Oct 2016 by Richard Deeming
The SqlFunctions will only work with LINQ to SQL; the EntityFunctions can only be invoked from Entity Framework.If you want to call a specific function from NHibernate, then you'll need to create a custom dialect:Pure Dot Net Coder: Using DateAdd with NHibernate Linq[^]Alternatively,...
8 Mar 2018 by Maciej Los
Yes, you can. Details can be found here: GitHub - JeremySkinner/FluentValidation: A small validation library for .NET that uses a fluent interface and lambda expressions for building validation rules.[^]
25 Mar 2013 by Manu Thalasseril
Can anyone help me to use the application menu in fluent ribbon. I cant find a single sample showing how to use the Application Menu in Fluent Ribbon after one day full search.Thanks in advance
25 Mar 2013 by Abhinav S
This documentation[^] might help you.
25 Mar 2013 by Manu Thalasseril
I got the solution , actually it is very simple
4 Jun 2013 by Anubhava Dimri
Hi Everybody,I have a class Customermodel in which have birthday,birthmonth,birthyear properties.So i am trying to create a valid date Rules for client side that but i am not able to create it.I am facing issues at the time of birthday. because it is depend on birthmonth and...
30 Jul 2014 by Rasool Ahmed
Hi all,I have this exception "illegal attempt to associate a collection with two open sessions", it raises every time I save entity contains collection of children.I google it. I found that I opened two or more sessions when calling save, but I'm sure that I'm using only one session.Where...
3 Aug 2014 by Rasool Ahmed
I have an error exception: "could not insert select SCOPE_IDENTITY()". After certain hours of googling, I found that I have a mistake in my Mapping files. I tried all the possible solutions, but the error keeps appearing.My mapping files:public sealed class EmployeeMap :...
19 Aug 2014 by Member 10966414
Greetings, i'm a newbie in Fluent NHibernate, and i wonder, how can i add record to database programmatically, without this:Dictionary d = new Dictionary() { blah, blah };Users u = new Users() { blah, blah };d.AddUsers(u);session.SaveOrUpdate(d);I want to add record...
18 Nov 2014 by Member 10966414
Greetings, my entity class looks like this:public class Foo { public virtual long ID { get; set; } public virtual string Name { get; set; } public virtual Foo2 Foo2 { get; set; }}And mapping for him:public class FooMap: ClassMap{ public FooMap() ...
18 Nov 2014 by Vijay Gill
Just use Map(x=>x.Foo2ID) then, but then you lose the cascade related functionality. Using Map(x=>x.Foo2ID) you just tell NHibernate to map to that column as if it was just like any other column.
23 Jan 2015 by agould1
So I've looked around quite a bit for assistance to this problem as the error seems somewhat common, but I've exhausted all my options. I've tried several implementations as suggested but I just can't get past it. Here's the exact error:"Foreign key (FK6482F24702A58C9:Category [fkCategory,...
23 Jan 2015 by agould1
Turns out there was another attempt at this same problem in the solution but the map was wrong. Once I commented out this map (as it's essentially a dead map now) everything workedusing FluentNHibernate.Mapping;using SkillsMatrix.Domain;namespace SkillsMatrix.Mapping{ public...
31 Oct 2016 by Ryan Zahra
Using Fluent NHibernate, I would like to check a future date with a give date. For simplicity's sake, I've reduced my code to the bare minimum below. The property "MyDate" is mapped to a column in Sql Server of type "Date". However, I've tried the same code below using the Sql Type "DateTime"...
8 Mar 2018 by Prusha Sidha
Hi all, I would like to use Jeremy Skinner's Fluent Validation Library for C# Windows Forms Application (Entity Framework 6.x). Is it possible? Is it any problem? Thank you very much. best regards, What I have tried: I am upper-newbie. So I have not try any thing.
20 May 2018 by RickZeeland
The problem seems to me that 'Name' is defined three times, so maybe you need to use unique names like Name1, Name2, Name3. Here is an article on CodeProject which explains mapping subclasses: Inheritance mapping strategies in Fluent Nhibernate[^]
20 Aug 2018 by Jahongir Sabirov
I have several tables. I 'm using nhibernate in my desktop project. But when I try to save some data into my any of table through nhibernate it gives me following error {"An association from the table p_returnitem refers to an unmapped class: SmartWarehouse.Order"} My Preturnitementity is...
15 Jun 2020 by gokhan572
Hello! I created a validation method which i will get a warning while i am trying to create a duplicate entry. For example "Property name must be unique" but I have already had empty values in the database and when i try to save second empty...
15 Jun 2020 by Richard Deeming
Just add a check for an empty value at the start of your validation method. Eg: protected override bool IsValid(PropertyValidatorContext context) { if (context.PropertyValue == null) return true; ...
20 Oct 2020 by Pawan Kiran
Please help me with the below issue. I have added a new column to Existing Table and Rebuild the code and It works fine when reading a record. public TEntity Get(int id) { Session.CacheMode = CacheMode.Normal; var entity =...
20 Oct 2020 by Member 14970324
Try to use Nhibernate profiler and inspect your queries Hibernating Rhinos NHibernate Profiler[^] . In my case, there was hidden INSERT query in the table [TableName]_AUD, which fall with the "Invalid column name [ColumnName]" message
14 Sep 2021 by Codes DeCodes
I want to use Fluent Nhibernate ORM in my C# project that needs to connect to Oracle and SQL Server database. I know that I need to create mapping file to map my C# objects to database objects but what I am uncertain is - Is mapping syntax going...
1 Jan 2022 by Adam Flow
As stated in this wiki: Fluent NHibernate Any Quote: There are three things you need to provide to be able to map using an Any; a column that holds the type of the entitiy, at least one column holding the identifier value, and a type for the...
24 Aug 2022 by Manojkumar-dll
I'm having a report mailing project in that ,i have completed generation and sending mail to corresponding mail now i have to automate it to send itself every 7 days once at 00:00:00 IST the problem is with elastic in that data is fetching as...
24 Aug 2022 by Michael Hulthin
Not sure if I understood your question correct or not, but if you want to convert utc to ist. This works for me : var timeZone = TimeZoneInfo.FindSystemTimeZoneById("IST"); var utcNow = DateTime.UtcNow; // From 'elastic' in your case? var...
15 Oct 2012 by Monjurul Habib
Domain Model Layer will be better isolated from infrastructure implementation. Everything what you can configure with DataAnnotations is also possible with the Fluent API. The reverse is not true. So, from the viewpoint of configuration options and flexibility the Fluent API is “better”.
21 Aug 2013 by Shivprasad koirala
Humans are lazy and programmers are humans J . We like things which are simplified and clean. So if you see the evolution of programming, we initially started with functional programming, and evolved towards object oriented programming.So as functional programmers where we used to remember methods a
3 Jun 2018 by saadishahin
A quick psedu-code for EF Core that's equivalent to modelBuilder.Configurations.AddFromAssembly in entity framework
20 Jan 2014 by Paulo Zemek
A fluent library for interactive animations in JavaScript
1 Dec 2015 by Ryan Zahra
Hi,I'm using Fluent NHibernate in my ASP.Net project. While on my machine everything works fine, when I publish my project to my hosting server, I'm having some issues.Below is the code that I'm using:try{ var db =...
15 Jul 2020 by Richard Deeming
The error message is quite clear - your Product class does not implement the IValidationContext interface. It looks like you're passing in the wrong value to your ValidatorTool.FluentValidate method. This appears to be the same code that was...
18 May 2017 by Khademul Basher
How to create a set of data models from a set of database tables.
15 Jul 2020 by ||Memo||
Hi guys, i have a problem about FluentValidation. I am taking this error when i am starting app: System.InvalidCastException: 'Unable to cast object of type 'DevFramework.Northwind.Entities.Concrete.Product' to type...
23 Apr 2014 by jothycse
Hi,I am new to fluent nhibernate. Please help me out to write the following sql query in fluent nhibernate.select * from user u inner join userinfo ui on ui.userid=u.userid where username="xyz".Thanks in Advance.
21 May 2018 by samlee69
hi friends, I am getting problem while mapping my model class(with subclasses). I am not getting the Name. It shows error while writing the code. The error is "CatsTute' does not contain a definition for 'Name' and no extension method 'Name' accepting a first argument of type 'CatsTute' could...