asp.net-dynamic-data

Do you think ASP.Net Dynamic Data is worth it?

家住魔仙堡 提交于 2020-01-13 03:23:25
问题 At the risk of sounding misinformed, I'm under the belief that this is basically useful for RAD and fast sketching of an application. It feels somewhat Ruby-esque in the sense that it scaffolds pretty much everything you need from a CRUD application. Easier work for us, right; and most people are none the wiser. I'm fairly green in the workplace, I just start working at an actual job as a developer (cubicles and free coffee) so my opinions might be a bit on the green side, but I'd love some

How to change the DisplayName of a table in ASP.Net Dynamic Data

流过昼夜 提交于 2020-01-06 01:48:06
问题 I'm new to Dynamic Data. I want to change the DisplayName of tables in Default.aspx page so I can set meaning full names for them. Also I want to change column names of tables when I List, Edit and Insert mode. How can I do that in c# language? 回答1: You can do this by setting the DisplayName (from System.ComponentModel ) attribute on each table. For this you'll need a partial class for each table that you're scaffolding with Dynamic Data e.g. using System.ComponentModel.DataAnnotations; using

ASP.NET Dynamic Data DisplayColumn Attribute Causing Sorting Issue

谁都会走 提交于 2020-01-02 08:26:13
问题 Using ASP.NET Dynamic Data with a LINQ to SQL DataContext from the Northwind Database... When I add a DisplayColumn Attribute to one of my LINQ to SQL entity classes and reference a property from my custom code in the partial class, I lose the ability to sort by that column in the generated GridViews . I continue to lose the ability to sort even if I reference a non-custom property as the sortColumn . Why is this happening? Example Code: [DisplayColumn("LastNameFirstName", "LastName", false)]

How to hide filtered column with dynamic data site?

做~自己de王妃 提交于 2019-12-25 16:43:57
问题 I have 'ProductType' column filtered, but it still is in data grid. If I apply ScaffoldColumn(false) filtering feature will disappear... How to hide column and keep filtering option? Thanks. 回答1: I think you may need something like this : [Display(Name = "Product Type", AutoGenerateFilter = true, AutoGenerateField = false)] public object ProductType { get; set; } Or, you'll need to extend the Metadata for that column. Steve Naughton shows how here. 来源: https://stackoverflow.com/questions

Can't retrieve ManyToMany field value in ASP.NET Dynamic Data

纵饮孤独 提交于 2019-12-25 08:37:02
问题 I have 2 models PosTransactionModel and PosItemModel which build on Postgresql via EntityFramework6 , they reference each as a ManyToMany relationship. public class PosTransactionModel { public int Id { get; set; } public ICollection<PosItemModel> SaleItems { get; set; } ... ... } public class PosItemModel { [Key] [DatabaseGenerated(DatabaseGeneratedOption.None)] public int ItemId { get; set; } public ICollection<PosTransactionModel> SoldInPosTransactions { get; set; } } I can see 3 tables

Are there any real-world case studies on the ASP.NET Dynamic Data Framework (DDF)?

余生颓废 提交于 2019-12-23 02:13:12
问题 I just wrapped up an arch review and next-gen recommendation for a client of ours that needs about the deepest level of customization I’ve ever seen for an application. Their desire is to customize their enterprise web application from the UI to the back-end by customer (40+ customers needing control-level customization). The customization will even include special business rules engines and very complex logic involving the transportation industry. As much as is possible, they want developer

Is it possible to have two partial classes in different assemblies represent the same class?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 04:27:13
问题 I have a class called 'Article' in a project called 'MyProject.Data', which acts as the data layer for my web application. I have a separate project called 'MyProject.Admin', which is a web-based admin system for viewing/editing the data, and was build using ASP.NET Dynamic Data. Basically I want to extend the Article class, using a partial class, so that I can augment one of its properties with a "UIHint" extender, which will allow me to replace the normal multi-line textbox with an FCKEdit

…is not a foreign key column and cannot be used here?

妖精的绣舞 提交于 2019-12-14 03:01:16
问题 I have two views in SQL, and have created mappings to them in Linq to SQL. The two views have an association, which works fine, between Ticket.ProblemCode and Problem.Code When I try to set UIHint("ForeignKey") on Ticket.ProblemCode and run the web page I get the error: 'ProblemCode' is not a foreign key column and cannot be used here. Anyone know why? More importantly, how to fix it? 回答1: See this post on the ASP.NET forums: http://forums.asp.net/t/1254559.aspx Also, you said that you

How to generate GUIDs automatically while creating a site using ASP.NET Dynamic Data?

牧云@^-^@ 提交于 2019-12-12 03:55:43
问题 I am having an SQL Server database, which is having a lots of table. Each of the table is having a primary column, which in fact is a GUID column. I have created new ASP.NET Dynamic data site to manage these tables. The problem is that, the GUIDs are not being generated and that's why the site breaks for all tables. I tried by adding "newID()" in SQL table, but it still fails. I believe I need to somehow do changes in code. I believe this might be an issue faced by many developers working

ASP.NET Dynamic Data Site: Force First Column to be Alphabetized

戏子无情 提交于 2019-12-11 05:52:40
问题 I have deployed a ASP.NET Dynamic Data Site here: https://ess.orthman.com/PhoneListWeb/ The Columns can be alphabetized by clicking on the Column name, but how can I set the site to automatically alphabetize that first column? 回答1: You have a number of options available, depending on which machine you want the burden of ordering. 1. You can create a Stored Procedure on the DB server which will SELECT * FROM ... ORDER BY ... and use that in your .dbml 2. You mentioned you are using Linq to SQL