tagged [fluent]
How to add event listener via Fluent NHibernate?
How to add event listener via Fluent NHibernate? I want to add an event listener (`IPreUpdateEventListener`) to add NHibernate but I can't seem to find an example when using a fluent configuration. I ...
- Modified
- 18 Jun at 15:32
Fluent nHibernate automapping property as nvarchar(max)
Fluent nHibernate automapping property as nvarchar(max) using fluent nhibernate, and automappings (nhibernate creates my db schema), how can i get nhibernate to create a nvarchar(max) column in the da...
- Modified
- 20 Aug at 15:19
EF Code First prevent property mapping with Fluent API
EF Code First prevent property mapping with Fluent API I have a class `Product` and a complex type `AddressDetails` Is it possible to preve
- Modified
- 28 Feb at 08:30
Conditional Builder Method Chaining Fluent Interface
Conditional Builder Method Chaining Fluent Interface I was wondering what would be the best way to implement a `.When` condition in a using in a `Builder` object? For instance how would I implement th...
- Modified
- 29 Jan at 20:31
Implementing Zero Or One to Zero Or One relationship in EF Code first by Fluent API
Implementing Zero Or One to Zero Or One relationship in EF Code first by Fluent API I have two POCO classes: ``` public class Quotation { public int Id { get; set; } public virtual Order Order { g...
- Modified
- 20 Sep at 10:9
Is this session provider correct for the web?
Is this session provider correct for the web? Just learning nhibernate with fluent, and my session provider looks like: ``` public class SessionProvider { private static ISessionFactory sessionF...
- Modified
- 18 Aug at 17:46
How to do a join in linq to sql with method syntax?
How to do a join in linq to sql with method syntax? I have seen lots of examples in LINQ to SQL examples on how to do a join in query syntax but I am wondering how to do it with method syntax? For exa...
- Modified
- 1 Jan at 11:54
How to Design Fluent Async Operations?
How to Design Fluent Async Operations? Async operations do not seem to play well with fluent interfaces which I prefer to code in. How can Asynchrony be combined with Fluent? --- Sample: I have two me...
- Modified
- 26 Jan at 17:54
How to check a list is ordered using Fluent Assertions
How to check a list is ordered using Fluent Assertions I am writing some unit tests using specflow and need a way to check whether a list of objects is ordered by a specific property. Currently I am d...
- Modified
- 15 Oct at 13:2
FluentAssertions Type check
FluentAssertions Type check I try to use to check in my UnitTest, that the type of a property in a list of items is of a certain type. Unfortunately, my test fails with the following error message: > ...
- Modified
- 19 Feb at 10:39
Testing for exceptions in async methods
Testing for exceptions in async methods I'm a bit stuck with this code (this is a sample): The code doesn't catch the exception, and fails with > Expected a System.Exception to be thro
- Modified
- 14 Mar at 15:33
Use of TransactionScope with read uncommitted - is with (nolock) in SQL necessary?
Use of TransactionScope with read uncommitted - is with (nolock) in SQL necessary? I am using FluentNHibernate, and I have a list of records, mapped to an SQL Server 2008 view. Dirty reads are OK with...
- Modified
- 30 Sep at 19:58
Execute FluentMigrator migrations from code
Execute FluentMigrator migrations from code Are there any tutorials or example code for executing `FluentMigrator` migrations from within code? Some "Getting Started..." tutorial would be just awesome...
- Modified
- 6 Feb at 20:10
Why use a Fluent Interface?
Why use a Fluent Interface? When comparing to classic properties, what's the big gain of using it ? I know the repeating of the instance name is gone, but that's all ? ``` public class PropClass { pu...
- Modified
- 14 Dec at 04:37
Disconnect object from NHibernate session
Disconnect object from NHibernate session In my nhibenate session I Mapping object with AutoMapper and in the afterMap action i create new instance of the object because I extract the object from the ...
- Modified
- 6 Mar at 09:57
Fluent NHibernate: How to map an entire class as ReadOnly?
Fluent NHibernate: How to map an entire class as ReadOnly? I have a few classes that read from very delicate tables, which is why I want them to be used by NHibernate as "ReadOnly". Establishing .Read...
- Modified
- 13 Sep at 18:39
Extension methods overload choice
Extension methods overload choice I have two extension methods: Now I write some code which uses it: ``` List collec
- Modified
- 25 Mar at 14:49
Creating Unique Index with Entity Framework 6.1 fluent API
Creating Unique Index with Entity Framework 6.1 fluent API I have a column "Name" that must be unqiue. No foreign key or anything like that. EF 6.1 finally supports creating such indexes via Annotatio...
- Modified
- 27 Feb at 08:3
How to implement nhibernate session per request pattern, using Service stack's funq container as a dependency injector
How to implement nhibernate session per request pattern, using Service stack's funq container as a dependency injector I am getting the session by injecting session to service method in global.asax as...
- Modified
- 11 Jul at 13:31
Castle-Windsor Fluent Interface: How to register all implementations of all interfaces?
Castle-Windsor Fluent Interface: How to register all implementations of all interfaces? I have two assemblies and where EDC2.DaoInterfaces defines a bunch of interfaces for data access objects to obje...
- Modified
- 15 Jan at 22:43
using (Fluent) NHibernate with StructureMap (or any IoCC)
using (Fluent) NHibernate with StructureMap (or any IoCC) On my quest to learn NHibernate I have reached the next hurdle; how should I go about integrating it with StructureMap? Although code examples...
- Modified
- 19 Jun at 20:30
Possible to set column ordering in Entity Framework
Possible to set column ordering in Entity Framework Is there any possible configuration to set database column ordering in entity framework code first approach..? All of my entity set should have some...
- Modified
- 6 Apr at 05:51
Is there a more appropriate to test if the constructor throws an exception?
Is there a more appropriate to test if the constructor throws an exception? Normally you test, if an exception gets thrown in a certain method, as follows. I use : ``` [Fact] public void Exception_get...
- Modified
- 5 Jun at 15:50
How to assert all items in a collection using fluent-assertions?
How to assert all items in a collection using fluent-assertions? Say I want to test a method returning a bunch of items of the following type using [fluent-assertions](https://github.com/dennisdoomen/...
- Modified
- 19 Sep at 16:8
FluentMigrator rolling back to a Not Nullable column?
FluentMigrator rolling back to a Not Nullable column? Given the following Migration: The migrator alters a col
- Modified
- 11 Jun at 11:16