示例#1
0
        private void Initialise()
        {
            _propDefBuilders = new List <PropDefBuilder <T> >();
            if (_superClassDefBuilder == null)
            {
                _classDefBuilder2 = new ClassDefBuilder2 <T>(_classDefBuilder, _propDefBuilders, _primaryKeyPropNames);
            }
            else
            {
                _classDefBuilder2 = new ClassDefBuilder2 <T>(_classDefBuilder, _propDefBuilders, _primaryKeyPropNames, _superClassDefBuilder);
            }

            _propertiesDefBuilder = new PropertiesDefBuilder <T>(_classDefBuilder2, _propDefBuilders);
        }
 public UniqueContraintsBuilder(ClassDefBuilder2 <T> classDefBuilder2, IList <KeyDefBuilder <T> > keyDefBuilders)
 {
     _classDefBuilder2  = classDefBuilder2;
     _newKeyDefBuilders = keyDefBuilders;
 }
 public PropertiesDefBuilder(ClassDefBuilder2 <T> classDefBuilder, IList <PropDefBuilder <T> > propDefBuilders)
 {
     _classDefBuilder = classDefBuilder;
     PropDefBuilders  = propDefBuilders;
 }
 public PropertiesDefBuilder2(ClassDefBuilder2 <T> propertiesDefBuilder, IList <PropDefBuilder <T> > propDefBuilders)
     : base(propertiesDefBuilder, propDefBuilders)
 {
 }
示例#5
0
 public RelationshipsBuilder(ClassDefBuilder2 <T> classDefBuilder, IList <ISingleRelDefBuilder> singleRelationshipDefBuilders, IList <IMultipleRelDefBuilder> multipleRelationshipDefBuilders)
 {
     _classDefBuilder = classDefBuilder;
     _singleRelationshipDefBuilders   = singleRelationshipDefBuilders;
     _multipleRelationshipDefBuilders = multipleRelationshipDefBuilders;
 }