Questions tagged [fluent]

Fluent interface is an API which allows method chaining to make code more readable.

Fluent interface is API which allows method chaining to make code more readable.

1148 questions
0
votes
2 answers

Is there a workaround for the unsupported IParameterizedType in Fluent NHibernate?

Fluent NHibernate is currently unable to use the IParameterizedType of a CustomType but I need to use the fluent mapping because I want to adjust the mapping within my code. Is there a workaround for Fluent NHibernate that somehow injects the XML…
Martin
  • 10,738
  • 14
  • 59
  • 67
0
votes
1 answer

How to find a dense region in a List

hi i need to find the biggest dense region in a List of values based on a given range example: var radius =5; //Therm edited var list = new List{0,1,2,3,4,5,12,15,16,22,23,24,26,27,28,29}; //the following dense regions exist in the list…
WiiMaxx
  • 5,322
  • 8
  • 51
  • 89
0
votes
3 answers

Entity Framework 5 Code First - Non-Nullable Foriegn Key Fields

I am new to Entity Framework and about to embark on a new ASP.NET MVC project using EF5 Code First. I noticed whilst trying out EF that the Foreign Key fields that are automatically generated for me in my database allow NULL's and I wonder how I…
0
votes
1 answer

Entity Framework Fluent API: Violation of DRY?

I just stumbled across an EF Code First tutorial that goes over creating POCO configurations using the Fluent API. I was unaware this was available in EF and had only seem Data Annotations previously. After watching this tutorial I read probably a…
mellis481
  • 4,332
  • 12
  • 71
  • 118
0
votes
1 answer

How to use the Fluent API of Apache HttpClient to read UTF-8 coded website?

String html = Request.Get("https://kokos.pl/") .execute().returnContent().asString(); System.out.println(html); What I obtain in the 12th line is: Szybkie po??yczki got??wkowe, po??yczki spo??eczno??ciowe - Kokos.pl while…
asliwinski
  • 1,662
  • 3
  • 21
  • 38
0
votes
1 answer

Handling large data sets

Have an application that benefits greatly from FluentNHibernate/NHibernate. Still learning FNH and NH. A portion of the application writes summary data at the end of each event. Which over 100,000 can occur per day. My question is, is there best…
faldeland
  • 587
  • 6
  • 20
0
votes
1 answer

NHibernate Fluent Join mapping for many to one relationship

I'm trying to fetch a collection of read-only objects from NHibernate where all the properties come from a single table (Answers), with the exception of one property that comes from another table (Questions) in a many to one relationship. The fact…
GoatInTheMachine
  • 3,583
  • 3
  • 25
  • 35
0
votes
1 answer

Fluent nHibernate SubclassMap and AddFromAssemblyOf

I created a generic user repository base class that provides reusable user management functionality. public class UserRepository where TUser : new, IUser { } I have a concrete implementation of IUser called UserImpl, and corresponding…
viklele
  • 103
  • 7
0
votes
1 answer

Entity framework conventions making unexpected tables

I am modelling an e-learning system whereby a user can enroll on a course. A course can be made up of a series of content or a series of course sections which in turn contain content. I have the models defined as follows: public class Course { …
Jay
  • 3,012
  • 14
  • 48
  • 99
0
votes
1 answer

One to Many Persistence Specification not working

I'm trying to work out what the persistence specification should be for the following one to many relationship in fluent nhibernate... Sorry for the wall of code... I've tried lots of ways of doing this, none of which have worked... Also would…
0909EM
  • 4,761
  • 3
  • 29
  • 40
0
votes
1 answer

Fluent Validation Complex Property message shows Complex Property Name in it

Hi I have class structure like this public class Order { public Address OfficeAddress {get;set;} } public class Address { public string ID {get;set;} public string Street1 {get;set;} public string street2 {get;set;} public string City…
0
votes
1 answer

Searching for a variable number of terms in a MySQL database using Laravel Fluent

I have the following MySQL table: cases id INT diagnosis TEXT description TEXT This is represented in Laravel by a LibraryCase model. When a user enters a search term I get matching cases using the following: // $user_query…
Garry Pettet
  • 8,096
  • 22
  • 65
  • 103
0
votes
1 answer

Entity framework 5 many to many when an entity is using composite key

im having some problems with EF 5 when i want to map many to many relationships using code first. This is my scenario: public class SegFunction { public virtual string Idaplication {get;set;} public virtual string Idfunction {get;set;} …
0
votes
1 answer

EF5 Fluent API byte array to long

Using EF5 Fluent API does anyone know if it's possible to have a binary column in the database but a long in the C#? When we put a long in the entity we always end up with EF errors at runtime (unable to perform the mapping). If we put a byte[] then…
Fabien
  • 1,015
  • 2
  • 11
  • 22
0
votes
1 answer

Laravel - Eloquent joining table with intermediary table

I'm trying to join tables using intermediary table, for example: I have portfolios table and packages table each row of the table will have many imgs which is stored in imgs table, I want to try make an intermediary table to join them so the imgs…
mohur
  • 1,785
  • 4
  • 16
  • 25