Display name of the user that created this item.
String representing author name.
This property contains a description of the creator of the resource that is suitable for presentation to a user. Can be used to indicate who created that version.
public string CreatorDisplayName
{
get
{
string creatorDisplayName;
using (SqlConnection conn = new SqlConnection(fConnStr))
{
conn.Open();
SqlCommand cmd = conn.CreateCommand();
cmd.CommandText = "SELECT CreatorDisplayName FROM Version WHERE VersionId = @VersionId";
cmd.Parameters.Add("@VersionId", SqlDbType.UniqueIdentifier).Value = this.VersionId;
creatorDisplayName = (string)cmd.ExecuteScalar();
}
return creatorDisplayName;
}
set
{
using (SqlConnection conn = new SqlConnection(fConnStr))
{
conn.Open();
SqlCommand cmd = conn.CreateCommand();
cmd.CommandText = "UPDATE Version SET CreatorDisplayName = @CreatorDisplayName"
+ " WHERE VersionId = @VersionId";
cmd.Parameters.Add("@VersionId", SqlDbType.UniqueIdentifier).Value = this.VersionId;
cmd.Parameters.Add("@CreatorDisplayName", SqlDbType.NVarChar).Value = value;
cmd.ExecuteNonQuery();
}
}
}
IDeltaVItem Interface | ITHit.WebDAV.Server.DeltaV Namespace