Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Browsing all 7925 articles
Browse latest View live
↧

Edited Issue: Can't modify key after convention model builder added entity [471]

After ODataConventionModelBuilder add an entity, user can't change the key property to another one.For example: public class Todo { public int TodoID { get; set; } public string Name { get; set; } }var...

View Article


Commented Issue: Can't modify key after convention model builder added entity...

After ODataConventionModelBuilder add an entity, user can't change the key property to another one.For example: public class Todo { public int TodoID { get; set; } public string Name { get; set; } }var...

View Article


Closed Issue: Model builder allowing duplicate function names for Actions [469]

According to OData spec, we cannot have duplicate function names for Actions within a container. Notice that in the below example, the action "UpdateName" is present twice"MUST not have a declaring...

View Article

Edited Issue: Make entity set name case insensitive [465]

Currently, when requesting http://localhost:50232/todoes (where entity set name is Todoes) doesn't report any error and the feed is serialized correctly in response. However, no links are generated on...

View Article

Edited Issue: ODataEntityTypeSerializer closes connection when error happens...

The issue happens when some data from server side missing some required property. The validation error is: Microsoft.Data.OData.ODataException occurred HResult=-2146233079 Message=The property...

View Article


Commented Issue: ODataEntityTypeSerializer closes connection when error...

The issue happens when some data from server side missing some required property. The validation error is: Microsoft.Data.OData.ODataException occurred HResult=-2146233079 Message=The property...

View Article

Edited Issue: Provide api to make Action parameters Nullable [461]

For the following action, I would like to make the parameter 'p3' nullable. Currently, there is no api on the ActionConfiguration which can make it Optional or Nullable. var actionConfig =...

View Article

Edited Issue: IsConcurrencyToken(true) doesn't output etag attribute on edm...

The method is not working when set property as concurrency token.For example: builder .Entity<Vehicle>() .Abstract() .HasKey(v => v.Name) .HasKey(v => v.Model) .Property(v =>...

View Article


Commented Issue: IsConcurrencyToken(true) doesn't output etag attribute on...

The method is not working when set property as concurrency token.For example: builder .Entity<Vehicle>() .Abstract() .HasKey(v => v.Name) .HasKey(v => v.Model) .Property(v =>...

View Article


Commented Issue: [DataMember(IsRequired=true)] doesn't make property as...

Since we already support [Required], we should support this as well.For example: [DataContract] public class Vehicle { [Key] [DataMember] public int Model { get; set; } [Key] [DataMember] public string...

View Article

Edited Issue: [DataMember(IsRequired=true)] doesn't make property as required...

Since we already support [Required], we should support this as well.For example: [DataContract] public class Vehicle { [Key] [DataMember] public int Model { get; set; } [Key] [DataMember] public string...

View Article

Edited Issue: [DataMember(IsRequired=true)] doesn't make property as required...

Since we already support [Required], we should support this as well.For example: [DataContract] public class Vehicle { [Key] [DataMember] public int Model { get; set; } [Key] [DataMember] public string...

View Article

Edited Issue: QueryableAttribute doesn't support query on public field [441]

To repro:public class Movie{ public string Name = null;}public class MoviesController : ApiController{ [Queryable] public IEnumerable<Movie> Get() { return new Movie[] { new Movie { Name = "Test"...

View Article


New Post: OData Multiple models and APIs in the same site

Thanks for the solution RaghuRam, I will try your suggestions and see how it works out.

View Article

Commented Issue: Allow membership and roles table names to be specified [404]

The Internet Application template in VS 2012 now includes DotNetOpenAuth by default, and adds an InitializeSimpleMembership attribute that decorates the AccountController class. While you need to pass...

View Article


Closed Issue: Can't post derived type to base type's EntitySet [530]

For example, define models: [EntitySet("Vehicles")] [DataServiceKey("Id")] public class Vehicle { public int Id { get; set; } public string Model { get; set; } public string Name { get; set; } public...

View Article

Edited Issue: Advertise actions information of entities or collections of...

OData spec here talks about 'advertising' of actions in the response. It says 'MAY', but this bug is just to keep track of atleast to make sure we provide this...

View Article


Commented Issue: Advertise actions information of entities or collections of...

OData spec here talks about 'advertising' of actions in the response. It says 'MAY', but this bug is just to keep track of atleast to make sure we provide this...

View Article

Edited Issue: QueryableAttribute doesn't support operators on DateTimeOffset...

http://localhost:9022/api/FilterTests/GetProducts?$filter=DateTimeOffset eq datetimeoffset'2011-06-01T14:03:00'Respose Content: {"Message":"The query specified in the URI is not...

View Article

Edited Issue: QueryableAttribute doesn't support compare complex type with...

Repro code: public class BlahController : ApiController { [Queryable] public IQueryable<User> Get() { return new List<User>() { new User() { FirstName = "A", LastName = "AL", Age = 10 },...

View Article
Browsing all 7925 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>