Initial import
This commit is contained in:
parent
0c865416ca
commit
04804b89a9
279 changed files with 12945 additions and 0 deletions
76
NpgsqlBlogProvider/DataModel/Comment.cs
Normal file
76
NpgsqlBlogProvider/DataModel/Comment.cs
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
using System;
|
||||
using System.Configuration;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Npgsql.Web.Blog.DataModel
|
||||
{
|
||||
public class Comment
|
||||
{
|
||||
long id;
|
||||
[DisplayName("Identifiant numérique de commentaire")]
|
||||
public long Id {
|
||||
get {
|
||||
return id;
|
||||
}
|
||||
set {
|
||||
id = value;
|
||||
}
|
||||
}
|
||||
long postid;
|
||||
[DisplayName("Identifiant numérique du billet commenté")]
|
||||
public long PostId {
|
||||
get {
|
||||
return postid;
|
||||
}
|
||||
set {
|
||||
postid = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the author of this comment.
|
||||
/// </summary>
|
||||
/// <value>From.</value>
|
||||
public string From { get; set; }
|
||||
|
||||
string content;
|
||||
[DisplayName("Contenu")]
|
||||
[Required(ErrorMessage = "S'il vous plait, saisissez un contenu")]
|
||||
public string CommentText {
|
||||
get {
|
||||
return content;
|
||||
}
|
||||
set {
|
||||
content = value;
|
||||
}
|
||||
}
|
||||
|
||||
public DateTime posted;
|
||||
|
||||
[DisplayName("Date de creation")]
|
||||
public DateTime Posted {
|
||||
get {
|
||||
return posted;
|
||||
}
|
||||
set {
|
||||
posted = value;
|
||||
}
|
||||
}
|
||||
|
||||
public DateTime modified;
|
||||
|
||||
[DisplayName("Date de modification")]
|
||||
public DateTime Modified {
|
||||
get {
|
||||
return modified;
|
||||
}
|
||||
set {
|
||||
modified = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool Visible { get; set ; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue