Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
rodgerbrennan committed Jun 4, 2018
1 parent 71c8ab8 commit abce352
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions EFCore.Extensions.SqlServer/GeneratorExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
using Microsoft.EntityFrameworkCore.Storage.Internal;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SuccincT.Unions;
using System.IO;

Expand All @@ -21,7 +19,6 @@ public static void Append(this Union<StringBuilder, StreamWriter> writer, string
writer.Match()
.CaseOf<StringBuilder>().Do(x => x.Append(value))
.CaseOf<StreamWriter>().Do(x => { x.Write(value);
//x.Flush();
})
.Exec();
}
Expand Down Expand Up @@ -61,13 +58,6 @@ public static void Generate(this DbContext @context, Stream stream)

public static void Generate(this DbContext @context, Union<StringBuilder, StreamWriter> writer)
{
//var writer = (stream == null) ? new Union<StringBuilder, StreamWriter>(new StringBuilder()) :
// new Union<StringBuilder, StreamWriter>(new StreamWriter(stream));


//writer.Append("test");

//var sBuilder = new StringBuilder();

var sqlMapper = new SqlServerTypeMapper(new RelationalTypeMapperDependencies());

Expand All @@ -89,7 +79,6 @@ public static void Generate(this DbContext @context, Union<StringBuilder, Stream
GenerateUpdates(writer, context, updatedEntities, sqlMapper);
GenerateDeletes(writer, context, deletedEntities, sqlMapper);

//return (T) Convert.ChangeType(writer, typeof(T));
}

private static void GenerateInserts(Union<StringBuilder, StreamWriter> sBuilder, DbContext context, IEnumerable<EntityEntry> entries, SqlServerTypeMapper mapper)
Expand Down

0 comments on commit abce352

Please sign in to comment.