mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 02:44:52 +08:00
Removing int Id properties from IContent descendants
Eliminates compiler warnings about hiding members of base class. --HG-- branch : dev
This commit is contained in:
@@ -86,8 +86,6 @@ namespace Orchard.Core.Tests.Body {
|
||||
}
|
||||
|
||||
public class Thing : ContentPart {
|
||||
public int Id { get { return ContentItem.Id; } }
|
||||
|
||||
public string Text {
|
||||
get { return this.As<BodyPart>().Text; }
|
||||
set { this.As<BodyPart>().Text = value; }
|
||||
|
@@ -208,8 +208,6 @@ namespace Orchard.Core.Tests.Routable.Services {
|
||||
}
|
||||
|
||||
public class Thing : ContentPart {
|
||||
public int Id { get { return ContentItem.Id; } }
|
||||
|
||||
public string Title {
|
||||
get { return this.As<RoutePart>().Title; }
|
||||
set { this.As<RoutePart>().Title = value; }
|
||||
@@ -232,8 +230,6 @@ namespace Orchard.Core.Tests.Routable.Services {
|
||||
}
|
||||
|
||||
public class Stuff : ContentPart {
|
||||
public int Id { get { return ContentItem.Id; } }
|
||||
|
||||
public string Title {
|
||||
get { return this.As<RoutePart>().Title; }
|
||||
set { this.As<RoutePart>().Title = value; }
|
||||
|
@@ -11,9 +11,6 @@ namespace Orchard.Core.Localization.Models {
|
||||
public LazyField<CultureRecord> CultureField { get { return _culture; } }
|
||||
public LazyField<IContent> MasterContentItemField { get { return _masterContentItem; } }
|
||||
|
||||
[HiddenInput(DisplayValue = false)]
|
||||
public int Id { get { return ContentItem.Id; } }
|
||||
|
||||
public CultureRecord Culture {
|
||||
get { return _culture.Value; }
|
||||
set { _culture.Value = value; }
|
||||
|
@@ -4,9 +4,6 @@ using Orchard.ContentManagement;
|
||||
|
||||
namespace Orchard.Core.Navigation.Models {
|
||||
public class MenuItemPart : ContentPart<MenuItemPartRecord> {
|
||||
[HiddenInput(DisplayValue = false)]
|
||||
public int Id { get { return ContentItem.Id; } }
|
||||
|
||||
[Required]
|
||||
public string Url {
|
||||
get { return Record.Url; }
|
||||
|
@@ -4,8 +4,6 @@ using Orchard.ContentManagement;
|
||||
|
||||
namespace Orchard.Core.Navigation.Models {
|
||||
public class MenuPart : ContentPart<MenuPartRecord> {
|
||||
[HiddenInput(DisplayValue = false)]
|
||||
public int Id { get { return ContentItem.Id; } }
|
||||
|
||||
public bool OnMainMenu {
|
||||
get { return Record.OnMainMenu; }
|
||||
|
@@ -4,9 +4,6 @@ using Orchard.Core.Routable.Models;
|
||||
|
||||
namespace Orchard.Blogs.Models {
|
||||
public class BlogPart : ContentPart<BlogPartRecord> {
|
||||
[HiddenInput(DisplayValue = false)]
|
||||
public int Id { get { return ContentItem.Id; } }
|
||||
|
||||
public string Name {
|
||||
get { return this.As<RoutePart>().Title; }
|
||||
set { this.As<RoutePart>().Title = value; }
|
||||
|
@@ -5,7 +5,6 @@ namespace Orchard.Security {
|
||||
/// Interface provided by the "User" model.
|
||||
/// </summary>
|
||||
public interface IUser : IContent {
|
||||
int Id { get; }
|
||||
string UserName { get; }
|
||||
string Email { get; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user