| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Reflection; |
| | | 4 | | using System.Text; |
| | | 5 | | |
| | | 6 | | namespace WinSolutions.Sveta.Server.Data.DataLoading.Records |
| | | 7 | | { |
| | | 8 | | public class FieldMap |
| | | 9 | | { |
| | 0 | 10 | | public int Order {get;set;} |
| | | 11 | | |
| | 0 | 12 | | public PropertyInfo PropertyInfo{get;set;} |
| | | 13 | | |
| | 0 | 14 | | public string SampleData{get;set;} |
| | | 15 | | |
| | 0 | 16 | | public string NameRus { get; set; } |
| | | 17 | | |
| | 0 | 18 | | public FieldMap(int order,PropertyInfo prop) |
| | 0 | 19 | | { |
| | 0 | 20 | | Order = order; |
| | 0 | 21 | | PropertyInfo = prop; |
| | 0 | 22 | | } |
| | | 23 | | } |
| | | 24 | | |
| | | 25 | | public interface IExternalRecord |
| | | 26 | | { |
| | | 27 | | IEnumerable<FieldMap> GetMapping(); |
| | | 28 | | |
| | | 29 | | int LineNumber{get;set;} |
| | | 30 | | |
| | | 31 | | List<string> Line{get;set;} |
| | | 32 | | |
| | | 33 | | Exception Exception{get;set;} |
| | | 34 | | } |
| | | 35 | | } |