Add LeafInput
Add EntityFramework
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Globalization;
|
||||
using AutoMapper;
|
||||
using Umbraco.Core.Models;
|
||||
using Umbraco.Web.Models;
|
||||
|
||||
namespace WebCms.Models
|
||||
{
|
||||
@@ -22,10 +25,18 @@ namespace WebCms.Models
|
||||
Mapper.CreateMap<LeafInputCreate, LeafInputConfirm>();
|
||||
}
|
||||
|
||||
public LeafInputConfirm(LeafInputCreate leafInputCreate, string[] files)
|
||||
{
|
||||
Mapper.Map(leafInputCreate, this);
|
||||
Files = files;
|
||||
}
|
||||
//public LeafInputConfirm(LeafInputCreate leafInputCreate, string[] files)
|
||||
//{
|
||||
// Mapper.Map(leafInputCreate, this);
|
||||
// Files = files;
|
||||
//}
|
||||
|
||||
//public LeafInputConfirm(IPublishedContent content, CultureInfo culture) : base(content, culture)
|
||||
//{
|
||||
//}
|
||||
|
||||
//public LeafInputConfirm(IPublishedContent content) : base(content)
|
||||
//{
|
||||
//}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user