Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:877205
More Search Options
RSS Available
Matching Posts
where can I see code of model ?
I have in Visual Studio 2010 beta1 and LINQ to SQL 'project.dhtml' model 'authors' with columns: id, name, surname. I click on it right key my mouse and choose 'view code' and I see: namespace project { partial class authors { } } Is this code of my model ? So where are fields - columns in this code ?
Posted to
ASP.NET MVC
(Forum)
by
zielony
on 11/12/2009
Re: where can I see code of model ?
Yes - I drag end drop - everything works - I only want to see code model - as I saw each mine model don't have columns in code. What is more interesting I can make queries LINQ to SQL insert/delete/select/update and they work. So why I don't see columns in models ? Maybe it is normal in Visual Studio 2010 beta1 ??
Posted to
ASP.NET MVC
(Forum)
by
zielony
on 11/12/2009
Re: where can I see code of model ?
ok thx very much - I think somebody should write in tutorial that we must create this file because for example I thought that ASP.NET create for me this file and I could only add attributes, for example [Required] for fields. :)
Posted to
ASP.NET MVC
(Forum)
by
zielony
on 11/12/2009
Re: where can I see code of model ?
thx Usonian, I have one more question - in tutorial about Data Annotation: http://www.asp.net/learn/mvc/tutorial-39-cs.aspx In Listing 1 : Models\Product.cs we have: using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace MvcApplication1.Models { public class Product { public int Id { get; set; } [Required] [StringLength(10)] public string Name { get; set; } [Required] public string Description { get; set; } [DisplayName("Price")] [Required] [RegularBLOCKED EXPRESSION
Posted to
ASP.NET MVC
(Forum)
by
zielony
on 11/12/2009
question about Data Annotation
I have only small question. If I have contact form (it doesn't use database) so I can't use Data Annotation ? I can use Data Annotation only for values which go to database, yes ?
Posted to
ASP.NET MVC
(Forum)
by
zielony
on 10/9/2009
Re: question about Data Annotation
oh, thx - You have right - I can create model with properties: email, subject, message and use this model to validation using Data Annotation - thx :)
Posted to
ASP.NET MVC
(Forum)
by
zielony
on 10/9/2009
Re: few questions about ASP.NET MVC 2 preview 1 to team of MICROSOFT
thx all - I couldn't check these things in MVC 2 preview 1 because I have Visual Studio 2010 beta 1 :) thx for answers bradwils levib also thx - "This was fixed in MVC v2 Preview 1, where SetModelValue() is no longer required to avoid the exception." - good, very good - AT LEAST !! :) ricka6 unfortunately I MUST DO all this work because I am from Poland and my national language is Polish and in Visual studio 2010 beta 1 all error communicates are in English :D
Posted to
ASP.NET MVC
(Forum)
by
zielony
on 9/15/2009
few questions about ASP.NET MVC 2 preview 1 to team of MICROSOFT
I have few questions about ASP.NET MVC 2 prewiev 1: 1. What about Data Annotation ? * Can I AT LEAST set global communicate of error for all errors for specific field - for example if some field has 3. validators I must three times write "Something is wrong in this field - please correct". * Can AT LEAST I set communicate of error if field is integer and somebody write chars ? 2. Must I STILL use this stupid ValueProvider() with MultiSelectList - example: [AcceptVerbs(HttpVerbs.Post)] public
Posted to
ASP.NET MVC
(Forum)
by
zielony
on 9/14/2009
Re: ienumerable and iqueryable and iorderedqueryable - nobody understand that
People from Microsoft help ? :)
Posted to
Data Access and ObjectDataSource Control
(Forum)
by
zielony
on 7/20/2009
Re: is it possible to create controller in ASP.NET MVC based on model like in symfony ?
thx - but it is complicated and not so comfortable like in symfony or like generating views in ASP.NET MVC. I would like to generate code in actions without template for controller. Maybe in the future it will be more comfortable :)
Posted to
ASP.NET MVC
(Forum)
by
zielony
on 7/19/2009
Page 1 of 17 (161 items) 1
2
3
4
5
Next >
...
Last »
TechNet Edge:
AlignIT IT Manager Podcast #30 - Straight Talk about Windows 7
WindowsClient:
You know your post rate has gone down...
Silverlight:
Geek Profiles – Scott Guthrie
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 9 of 13
TechNet Edge:
Managing Your Virtual World - Tech Focus November 2009 Part 2
ASP.NET:
Silverlight and RIA Services: Implementing Search
Channel 9:
C9 Lectures: Brian Beckman - Covariance and Contravariance in Physics 1 of 1
Channel 9:
Set Your Data Free
Channel 9:
Implementing a Silverlight SharePoint WebPart with Visual Studio 2010
WindowsClient:
New WPF Showcase Addition: Enterprise
Channel 9:
Reactive Extensions API in depth: Contract
WindowsClient:
Concluding "New WPF Features" Series
WindowsClient:
Introduction to TestApi – Part 5: Managed Code Fault Injection APIs
ASP.NET:
T4MVC now has a real home and a dedicated forum!
TechNet Edge:
Windows Server 2008 R2 : New Power Management Features
ASP.NET:
Web Deployment Painkillers: VS 2010 & MS Deploy
WindowsClient:
Application Accessibility Testing
WindowsClient:
Prism & WCF RIA Services
Channel 9:
Sharepoint 2010 and Claims-Based Identity
WindowsClient:
IRhetoric Ported To BlogEngine.NET
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online