protected override object ReadRow(IRowReader reader)
        {
            AssetOrderHistory assetOrderHistory = AssetOrderHistory.New();

            // View Fields
            assetOrderHistory.AssetOrderHistoryId = reader.GetInt32("AssetOrderHistoryId");
            assetOrderHistory.AssetId             = reader.GetInt32("AssetId");
            assetOrderHistory.OrderId             = reader.GetInt32("OrderId");
            assetOrderHistory.OrderDate           = reader.GetDateTime("OrderDate");
            assetOrderHistory.DeadlineDate        = reader.GetDateTime("DeadlineDate");
            assetOrderHistory.UserEmail           = reader.GetString("UserEmail");
            assetOrderHistory.UserId              = reader.GetInt32("UserId");
            assetOrderHistory.UserName            = reader.GetString("UserName");
            assetOrderHistory.Notes               = reader.GetString("Notes");
            assetOrderHistory.OrderItemStatusDate = reader.GetDateTime("OrderItemStatusDate");
            assetOrderHistory.OrderItemStatusId   = reader.GetInt32("OrderItemStatusId");


            assetOrderHistory.IsDirty = false;
            assetOrderHistory.ChangedProperties.Clear();

            return(assetOrderHistory);
        }
        public static AssetOrderHistory FindOne(AssetOrderHistoryFinder finder)
        {
            AssetOrderHistory AssetOrderHistory = AssetOrderHistoryMapper.Instance.FindOne(finder);

            return(AssetOrderHistory ?? Empty);
        }
 public static AssetOrderHistory Update(AssetOrderHistory assetOrderHistory)
 {
     return(AssetOrderHistoryMapper.Instance.Update(assetOrderHistory));
 }
        public static AssetOrderHistory Get(Nullable <Int32> AssetOrderHistoryId)
        {
            AssetOrderHistory AssetOrderHistory = AssetOrderHistoryMapper.Instance.Get(AssetOrderHistoryId);

            return(AssetOrderHistory ?? Empty);
        }
 public virtual AssetOrderHistory Update(AssetOrderHistory assetOrderHistory)
 {
     throw new NotImplementedException();
 }