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
1 answer

header udf.h not working for creating a udf for fluent

I am trying to create a user defined function udf for use in fluent ansys. Physics involved- i wanna get UDF- user defined function to get the following velocity profile for the body in ANSYS fluent- same velocities as piston motion stuff- for…
0
votes
1 answer

fluent and webhdfs filename with 197001011

I run td-agent on ubuntu 14.04 with the follow configuration: type tail format json path /path/tomcat/logs/file-input.log tag bhc.hdfs pos_file /var/td-agent/file.pos
critical
  • 135
  • 1
  • 1
  • 7
0
votes
1 answer

EF Many to Many Inserting Records into Main table as well as join table

I have an odd situation with a many to many relationship and inserting data. Table 1 (Region): public class Region { public Region() { SessionList = new List(); UserProfileList = new List(); …
Chris
  • 476
  • 1
  • 9
  • 17
0
votes
1 answer

Using Laravel Fluent how can I exclude certain rows based on an array of strings?

In my controller file I have this: $standard_sets = ['A', 'B', 'C', 'D', 'E']; $exclude_list = ['str1', 'str2', 'str3']; I'd like to exclude certain rows based on the exclude array. Something like this: $query->whereIn('cards.setCode',…
Howard
  • 3,648
  • 13
  • 58
  • 86
0
votes
1 answer

Using Laravel Fluent Query Builder, is there a way to search text based on 2 sub strings?

Assuming I have strings in the database that looks like the following: The quick brown fox 0 jumps over the lazy dog 0. The quick brown fox 0 jumps over the lazy dog 1. The quick brown fox 0 jumps over the lazy dog 2. The quick brown fox 1 jumps…
Howard
  • 3,648
  • 13
  • 58
  • 86
0
votes
1 answer

How to map a private identity field in FluentNHibernate?

I'm experimenting with converting my NHibernate mapping files to FluentNHibernate. However, I'm already stuck on my first attempt. Here's a fragment of one XML mapping file:
Trinition
  • 1,153
  • 2
  • 15
  • 25
0
votes
0 answers

EF6 Set Relation Table With Different Column Name Using Fluent API

I am trying to make n-n relation with rel table using Fluent API but i am messed up with inconsistent column names. I have Service and Feature objects simply like this: public class Service { [Key] public int ServiceID { get; set; } …
pilavust
  • 538
  • 1
  • 7
  • 20
0
votes
1 answer

js method chain tail

is there a way to detect if a method call in a chain (fluent interface) is in TAIL position in that chain ? var some = g.f(arg1).f(arg2).f(arg3); or do we absolutely need something like var some = g.f(arg1).f(arg2).f(arg3).end(); which I want…
0
votes
1 answer

Id naming convention in Laravel

In a recent project I had a custom id name for one of my tables, the user table (it was called user_id instead of simply id). When I tried to insert data into it, I got the following error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id'…
Tiago
  • 4,233
  • 13
  • 46
  • 70
0
votes
0 answers

Table-per-type and fluent-api

I have the following database: An artist can have many titles. A title can be either a song or an album. In my code I have the following configuration: public class AlbumConfiguration : EntityTypeConfiguration { public…
Bart Schelkens
  • 1,235
  • 4
  • 21
  • 45
0
votes
1 answer

Join on tables using Fluent NHibernate

I would like to make a join between tables using the FN. But the output I get is not quite correct result. My code: public class Store { public virtual int Id { get; protected set; } public virtual string Name { get; set; } public…
Anton
  • 3
  • 2
  • 2
0
votes
1 answer

Fluent API Map from a lookup table with a composite primary key to another table

I have a class with a composite primary key that's used as a lookup table for 3 different tables. So, the primary key is a composite of the 3 corresponding foreign keys. I want to use one of the keys in the composite key as a foreign key to another…
Smeegs
  • 9,151
  • 5
  • 42
  • 78
0
votes
1 answer

Empty assosiated entities in EF 6.0 Fluent Api

I try to implement 1..0 relations with Entity Framework 6. I use instance associsaltion. I try to repeat the examples from web and forums but somehow it doesn't work for me. Please, help. Entities: public class CustomerWithFk : Item // Item…
Artem A
  • 2,154
  • 2
  • 23
  • 30
0
votes
1 answer

ASP.NET MVC Fluent NHibernate updating record without me explicitly calling Repository.Update(item)

I have Fluent NHibernate set up in my ASP.NET MVC Project. For most of my records, I need to explicitly call Repository.Update(record) for the record to actually be persisted into the database. I was playing around with my project, and I found out…
mute
  • 311
  • 1
  • 3
  • 14
0
votes
0 answers

Code First The relationship was not loaded because the type is not available using fluent api

I'm trying to get a code first project to create my database; I've gotten all of the schema errors resolved but now I'm receiving the following error. The relationship 'EquipmentPro.Entities.Correspondence_UserFrom' was not loaded because the type…