CodeFluent Entities is a commercial code-generation tool provided by SoftFluent that integrates into Microsoft Visual Studio 2008, 2010, 2012, 2013 and 2015. It can generate SQL scripts, code like VB or C#, UIs or web services.
Questions tagged [codefluent]
151 questions
4
votes
1 answer
How specify the identity seed for a property in the CodeFluent model?
All the key properties in my CodeFluent model are of type ulong and must be automatically incremented by the database, for example:
One specific…

Willem
- 111
- 4
4
votes
1 answer
Get rid of timestamp in CodeFluent generated source files
CodeFluent includes a comment with a timestamp in all generated .cs files :
// CodeFluent Entities generated (http://www.softfluent.com). Date: Thursday, 05 September 2013 14:34.
The timestamp is regenerated whether the files changed or not. This…

Marcus Gambit
- 180
- 1
- 9
3
votes
2 answers
Codefluent: Connections to the database remain after thread ends
If I run the code below, a lot of connections to the database remain doing nothing. You can check the number of open connections by running:
SELECT COUNT(dbid) as TotalConnections FROM sys.sysprocesses WHERE dbid > 0
Or, if you want more detail run…

Peter de Bruijn
- 792
- 6
- 22
3
votes
1 answer
CodeFluent Aspect: How to Set up DropDown Input with Entity Properties
I'm developing an Full-Text Index Aspect, and I got to the point where I can specify a property to be a full-text index.
However, the next thing I want to do is specifying inside the SQL Full Text Index syntax, the "TYPE COLUMN xx", where "xx" is…

MTran
- 1,799
- 2
- 17
- 21
3
votes
2 answers
How to load entities of which a property of type PersistentList contains one or more values from array parameter?
My model contain the following enumeration and entity:
…

Willem
- 111
- 4
2
votes
2 answers
CodeFluent Image-Type with Windows-Forms
how can I handle and bind a PictureBox-Control from Windows-Forms to a binary CFE-Type i.e. image-type? Am I supposed to take another type for this?
Regards,
Mykola

SoftwareFactories UG
- 31
- 1
2
votes
1 answer
Sequential GUID's in CodeFluent
We use Guid's as identifiers for at least half of our tables. For the other tables more 'natural' identifiers could be used so we could profit from a natural clustered index. We noticed that the usage of the Guids causes a lot of overhead in the…

Peter de Bruijn
- 792
- 6
- 22
2
votes
1 answer
CodeFluent.RunTime.Client.dll - AccessViolationException
I started using CodeFluentRuntimeClient to replace Interop.MSScriptControl.dll.
I succeed here by tweeking a bit the dll to make it work.
We started using the dll in production. On one of the machines that we installed on it (windows server 2012),…

billybob
- 2,859
- 6
- 35
- 55
2
votes
1 answer
CodeFluent vs Interop.MSScriptControl.dll
We had a 32 bits service that we are trying to migrate to 64 bits.
We were using Interop.MSScriptControl.dll to evaluate vb script written by users.
Since there is no 64 bits version of the MSScriptControl. I created a process that was called inside…

billybob
- 2,859
- 6
- 35
- 55
2
votes
2 answers
value from database computed property is Null in codefluent entity property
My MS SQL 2014 database table has a computed property column which uses a database function. Using SQL Server Management Studio, a query against the table lists the computed property values as expected.
The Codefluent model created via the import…

Greg Delaney
- 81
- 11
2
votes
1 answer
Composite key in entity not reflected in Equals method
Given an Entity "MultipleKeysEntity" with 2 keys keyA and keyB.
KeyA is of type Enumeration; KeyB is of type guid.
Generated code for Equals method thanks to BOM producer doesn't take keyA in consideration. Is it a normal behavior ?

Olivier ROMAND
- 579
- 4
- 15
2
votes
0 answers
Error with PersistenceEnforce when using inherited entity
In my model I have set defaultPersistenceEnforce="true", because I want the database to enforce referential integrity.
However, I get an error when deleting an entity.
Here is my model:

Willem
- 111
- 4
2
votes
1 answer
Serializing properties
I have searched everywhere in CF docs, FAQ's, Blog and SO entries but still can't understand why this model:

JoeCool
- 907
- 1
- 11
- 25
2
votes
1 answer
Method does not execute when boolean parameter has a value of false
I have isolated the problem to the following lines of code in the BOM method that calls the stored procedure:
if ((includeAgeSeventeenAndUnder == CodeFluentPersistence.DefaultBooleanValue))
{
return null;
}
…

Dave
- 649
- 5
- 13
2
votes
1 answer
Codefluent SQL Server producer
We are using the SQL Server producer. We want an index for each foreign key column. SQL Server does not put indexes onto foreign key columns automatically. How can we create an index for each foreign key column automatically? Should we code an…

Marc Bremmers
- 21
- 1