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

Ansys Fluent Unresovled error in UDF

I am getting: error LNK2019: unresolved external symbol _imp_RP_Get_Integer referenced in function _update_mc While using: physical_dt = RP_Get_Integer("physical-time-step"); What is wrong?
0
votes
1 answer

Lazyloading not working with Fluent NHibernate

As I'm just starting with Fluent NHibernate, I'm creating a very simple example of application, witch classes are described below: //////////////////////////////DOMAIN CLASSES/////////////////////////////// public class Company { public virtual…
0
votes
1 answer

Nhibernate Fluent datetime mapping creates null column in DB

I really struggle to find an answer anywhere. I got this class declaration: public class Order { public virtual long Id { get; set; } public virtual DateTime OrderDate { get; set; } } I have created a mapping class where I map the property…
Andrew
  • 63
  • 6
0
votes
0 answers

EF - Many To Many Detect dirty inserts

I have an entity like below public class Property { public string PropertyID {get;set;} public virtual ICollection IncludedProperties {get;set;} public string value {get;set;} } That is, a property has a value, it can also…
0
votes
1 answer

Fluent API not creating Identity Specification (Is Identity) in SQL Server

I have an MVC4 application that is using code first. I have created 3 models that I wish to use to keep track of my clients Associates each with a designation of AssociateType (Distributors or Retailers) each Associate also has a deignated Region…
Eric Bishard
  • 5,201
  • 7
  • 51
  • 75
0
votes
1 answer

How to get a collection from a linking table Fluent NHibernate

I have a set of tables Users UserPermissions Permissions A user can have a 1 or many permissions specified by the linking table UserPermissions. My objects of type User has an IList I'm not sure how to properly configure NHibernate so that the…
GameScrub
  • 177
  • 1
  • 11
0
votes
1 answer

Understand Fluent Selenium Wait

I am into Development and new to QA/Automation testing. I am trying to understand the following code; public WebElement getVisibleElement( final By by, final WebElement parentElement, int timeoutValue, TimeUnit timeoutPeriod, int pollingInterval,…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
0
votes
0 answers

Can't get nullable property with Entity Framework code-first

I have POCO class Message as follow. public class Message { // //Fields... // //other fields public Guid UserId { get; set; } public virtual User User { get; set; } } I try to get a nullable UserId…
Elvin Mammadov
  • 25,329
  • 11
  • 40
  • 82
0
votes
0 answers

Entity Framework 5 invalid column name?

I try to test WPF, C# and EF 5 for developing a desktop application. When I execute context.SaveChanges, i have the following exception : Invalid column name simulation_SimulationID. I tried severale tips, but i was unable to solve this problem,…
Habib Gherairi
  • 261
  • 1
  • 5
  • 16
0
votes
1 answer

How to fake fluent constructor for unit test

I have one class that have a property of another class type: public class MyClass { public DepdendenceClass DependenceProp { get; set; } private MyClass(){} public MyClass(MyClassFactory factory) { this.DependenceProp =…
gt.guybrush
  • 1,320
  • 3
  • 19
  • 48
0
votes
1 answer

Removing from self joining type

Whenever I want to remove hierarchy of objects meaning a Menu object containing another Menu object in it. But it works fine if single object is removed (without any object inside). I am getting the following error: An error occurred while saving…
lbrahim
  • 3,710
  • 12
  • 57
  • 95
0
votes
1 answer

Objects validating itself using Castle Validators

I have a Task object which has a property of Employee. Im trying to find the best possible way setting a validation to only allow the certain employees to access the task object. If the current context user (web/winforms) tries to instantiate the…
ace
  • 215
  • 6
  • 17
0
votes
1 answer

Delete on Many to Many Relationship using Fluent Nhibernatev

Please, help me! I can't delete objects and dependence in Oid and CertRequest table. I have follow: Oid public class Oid { public virtual int Id { get; protected set; } public virtual int RowVersion { get; set; } public…
0
votes
1 answer

Why am I getting Invalid column name on field names that don't exist in my model?

I am querying an entity with EF 5.0 Code First / DbContext. I am getting the following errors: Invalid column name 'RetainedEarningsAccount_Key'. Invalid column name 'PLSummaryAccount_Key'. However, neither of these fields exist in the model. I…
PilotBob
  • 3,107
  • 7
  • 35
  • 52
0
votes
1 answer

Problems with one to one mapping using fluent api: data for dependent entity is returned null

I have the below DbContext, Model and Controller (database first). These are referents for two tables (operador and operador2), that complement each other. I mapped these models (table "operador") with (some table) successfuly, but the mapping…