UseSqlServer("Server=(localdb)\\mssqllocaldb;Database=XylaraxDB;Trusted_Connection=False;");
public T Get() {
if (dataByteArray == null) {
return default(T);
}
var formatter = new BinaryFormatter();
using (var stream = new MemoryStream(dataByteArray)) {
object obj = formatter.Deserialize(stream);
return (T)obj;
}
}