Пример #1
0
        public void SaveEntityInfo( Type entityType, EntityInfo entityInfo )
        {
            XmlSerializer serializer = new XmlSerializer( typeof( EntityInfo ) );

            string fileName = String.Empty;

            if( !String.IsNullOrEmpty( fileName ) )
            {
                fileName = String.Format( @"{0}\{1}.xml", _mapsFolder, entityType.Name );
            }
            else
            {
                fileName = String.Format( "{0}.xml", entityType.Name );
            }

            using( FileStream fs = new FileStream( fileName, FileMode.Create, FileAccess.Write ) )
            {
                serializer.Serialize( fs, entityInfo );
            }
        }
Пример #2
0
 public void SaveEntityInfo( Type entityType, EntityInfo entityInfo )
 {
     _mapRepository.SaveEntityInfo( entityType, entityInfo );
 }