annotate Demo/WebServices/NorthwindDataService/DataContext.cs @ 1:8f65451dc28f
 
Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
 | author | cin | 
 | date | Fri, 28 Mar 2014 01:04:56 +0400 | 
 | parents | f990fcb411a9 | 
 | children |  | 
 | rev | line source | 
  
| 0 | 1 using System; | 
|  | 2 using BLToolkit.Mapping; | 
|  | 3 | 
|  | 4 namespace NorthwindDataService | 
|  | 5 { | 
|  | 6 	partial class DataContext | 
|  | 7 	{ | 
|  | 8 	} | 
|  | 9 | 
|  | 10 	[InheritanceMapping(Code=true,  Type=typeof(DiscontinuedProduct))] | 
|  | 11 	[InheritanceMapping(Code=false, Type=typeof(ActiveProduct))] | 
|  | 12 	partial class Product | 
|  | 13 	{ | 
|  | 14 	} | 
|  | 15 | 
|  | 16 	public class ActiveProduct       : Product {} | 
|  | 17 	public class DiscontinuedProduct : Product {} | 
|  | 18 } |