MarkItUp.SingleUserBlog/Services/ApplicationDataObject.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Xml;
using System.Xml.Serialization;
using MarkItUp.SingleUserBlog.Common;
using System.Data;
using System.Reflection;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections.Generic;

namespace MarkItUp.SingleUserBlog.Services {
    [Serializable]
    public abstract class ApplicationDataObject {
        public ApplicationDataObject() { }

        #region Private Fields

        protected string _id = string.Empty;
        protected string _displayName = string.Empty;
        protected System.DateTime _dateCreated = DateTime.MinValue;
        protected System.DateTime _dateModified = DateTime.MinValue;
        private TimeZoneInformation _timeZoneInformation;

        #endregion

        #region Public Properties

        [XmlAttribute("id")]
        public string Id { get { return this._id; } set { this._id = value; } }

        [XmlAttribute("name")]
        public string DisplayName { get { return this._displayName; } set { this._displayName = value; } }

        [XmlAttribute("dateCreated")]
        public System.DateTime DateCreated { get { return this._dateCreated; } set { this._dateCreated = value; } }

        [XmlAttribute("dateModified")]
        public System.DateTime DateModified { get { return this._dateModified; } set { this._dateModified = value; } }

        public abstract string Description { get; set;}

        #endregion

        protected TimeZoneInformation TimeZoneInformation {
            get {
                if (_timeZoneInformation == null) {
                    try {
                        _timeZoneInformation = TimeZoneInformation.FromName(BlogConfigurationSettings.TimeZoneName);
                    } catch {

                    }
                }
                return _timeZoneInformation;
            }
        }

        // Add new Fill methods here as you add new data providers, ie:
        // Fill(SqlDataReader reader)

        /// <summary>
后面还有 116 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。