New Post: differences in generated classes
When running the T4 template (Database.tt), some of our team members get classes generated with constructors that set default values for boolean/bit properties/columns, while some get constructors that...
View ArticleNew Post: StoredProcedure.CheckNullable()
Does this make sense, so that we don't have to update the NotNullable collection? public static string CheckNullable(DataColumn col) { string result = string.Empty; result = (col.AllowDBNull &&...
View ArticleEdited Unassigned: Bug when view contains period character? [163]
Hi there.I have a view name EGData.Bolig.CreditorOpenInvoicesI have tried using renaming to fix namespace related issues. TableRename = (name, schema) =>{ return name.Replace(".Bolig.", "");};When...
View ArticleCommented Unassigned: Bug when view contains period character? [163]
Hi there.I have a view name EGData.Bolig.CreditorOpenInvoicesI have tried using renaming to fix namespace related issues. TableRename = (name, schema) =>{ return name.Replace(".Bolig.", "");};When...
View ArticleNew Post: StoredProcedure.CheckNullable()
I've tested it against my test database and it didn't make any difference, i.e. the generated code was the same as before. Is there a missing entry in the NotNullable collection ?
View ArticleNew Post: How do I stop this table from being pluralized?
Try doing both of these:new CustomPluralizationEntry("Settings_TAS", "Settings_TAS") TableRename = (name, schema) => { return name.Replace("_TAS", "_Tas"); };
View ArticleNew Post: differences in generated classes
Those defaults are picked up from the extended properties in your database. Here are your extended properties:SELECT s.name AS [schema], t.name AS [table], c.name AS [column], value AS [property] FROM...
View ArticleNew Post: StoredProcedure.CheckNullable()
Yeah object was missing. Sent via the Samsung GALAXY S®4 Active™, an AT&T 4G LTE smartphone
View ArticleNew Post: Views - LeftJoin - PrimaryKey(s)
Hi Mathias, EF won't work with any view/table without a primary key. Because you are joining to the dbo.OrderDetail, the dbo.[Order].Id will be duplicated for every row of order details, and therefore...
View ArticleNew Post: StoredProcedure.CheckNullable()
I've made a few changes. See this changeset. Can you let me know if this works for you guys?
View ArticleCommented Unassigned: Filtering of "Navigation Properties" [157]
When building objects and thinking about DDD and aggregate boundaries, one often might choose to deliberately NOT have a full-on navigation property between aggregates, and only keep the ID of the...
View ArticleCommented Unassigned: Bug when view contains period character? [163]
Hi there.I have a view name EGData.Bolig.CreditorOpenInvoicesI have tried using renaming to fix namespace related issues. TableRename = (name, schema) =>{ return name.Replace(".Bolig.", "");};When...
View ArticleNew Post: differences in generated classes
Would the values in INFORMATION_SCHEMA be the same things that you find in the table designer ? I believe that the person who has different info in his constructors has the same database defaults (e.g....
View ArticleSource code checked in, #65a878759633
Case 163. Handle views and table names with periods.
View ArticleSource code checked in, #ece0f476f4bf
Changed NotNullable to be List<string> and include object.
View ArticleNew Post: Views - LeftJoin - PrimaryKey(s)
Hi Simon, thanks for clarifying this. Best regards Mathias
View ArticleNew Post: differences in generated classes
It will not matter what version of visual studio he has as the generator uses its own SQL it fires at the database, and does not use any visual studio properties apart from being able to scan for a...
View ArticleSource code checked in, #dac870974d3d
Include System.Collections.Generic if generating stored procedures.
View Article