We have many solutions for versioning data through time. One of the cleanest, most transparent and pretty effortless in my opinion are Temporal Tables which are available in MS SQL 2016+. What’s really great about that approach is that unless you need to retrieve state from the certain point in time or browse through changes in a specified time range, you can query against a versioned table in an exactly same way that you would do with any other one.
Strona głównaUżytkownik
Rafał Hryniewski | użytkownik
Bazy danych i XML 2400 dni, 3 godziny, 15 minut temu 77 źrodło rozwiń
My last blog post was about a feature in SQL Server called Row Level Security Policy. It’s quite simple and known feature for people who’re working directly with databases. But most .NET developers are using ORM of some kind to work with DB, and some of them tend to be blind to stuff that is not available through object model in an easy way. And since Entity Framework is most popular ORM in C# environment and my ORM of choice in most cases, I’ll show you how to use RLS in it.
Bazy danych i XML 2454 dni, 17 godzin, 3 minuty temu 105 źrodło rozwiń
In some scenarios, like single-database multi-tenant or soft delete ones, you could want to restrict access to your rows based on a value stored in one or more values stored in your columns in example IsDeleted flag or some kind of TenantId column. Since SQL Server 2016 we have a wonderful tool for that called Row Level Security Policy.
Bazy danych i XML 2470 dni, 2 godziny, 23 minuty temu 114 źrodło rozwiń
When I’ve started working with Azure SQL there were some differences to SQL Server that I’ve needed to get used to. One of the first was that you just can’t query other databases that you’re already in, querying for [OtherDB].[dbo].[SomeTable] just wasn’t possible anymore. It appears that it may not be possible, but you actually can query for data in other databases.
I’m working with Azure for quite a while now. Almost every single one of my projects lands there eventually and even if I don’t deploy it there, I’m using one of it’s databases. Recently I’ve started using Visual Studio Team Services for storing code and managing my every pet or demo project that I want to keep private for now. But there is one service available on Azure that I’m using for a very long time with great success and I really like to have it in my project – it’s Application Insights combined ...
Storing data in multitenant environments always required some consideration. With Cosmos DB we have 2 options that are really worthy of our attention so let’s weight some pros and cons.
Bazy danych i XML 2590 dni, 5 godzin, 6 minut temu 79 źrodło rozwiń
A while ago I wrote about creating Actor System and top-level actors. Sadly it was stored in a static field. And keyword static is … let’s say it’s not one of my favourites. Today I’ll show you how I’m doing the exact same thing but in Dependency Injection container.
Sztuka programowania 2598 dni, 5 godzin, 17 minut temu 84 źrodło rozwiń
For the last 3 months I’ve been participating in Get Noticed contest, just like a year ago. I’ve persevered to end of the contest just like almost 200 people out of almost 1000 that started it. In the last week we as contestants was supposed to vote for other projects to choose 25 finalists from ourselves.
Daj się poznać 2017 2714 dni, 13 godzin, 40 minut temu 38 źrodło rozwiń
When I’m writing this there are still 2 and a half hour to the end of “Get Noticed 2017 contest. Let’s wrap everything up. The basic goal was to develop open source project and blog about this at least 2 times a week. I did a post about my project when I’ve released first alpha/beta version of it, you can read it here.
Daj się poznać 2017 2725 dni, 6 godzin, 49 minut temu 14 źrodło rozwiń
Working with Azure means you can use on of databases it provides in SaaS model. It means you don’t have to install and configure i.e. SQL Server on some kind of (virtual or not) machine. Databases in SaaS model have a lot of other virtues but let’s not go there in this post, today I want to write about choices you can make during choosing which database to use.
Daj się poznać 2017 2725 dni, 19 godzin, 41 minut temu 46 źrodło rozwiń
Since the beginning of march, I’m working on a pet project called Me 2.0 as a part of Get Noticed contest. Now I’m ready(ish) to release it’s the first version to the public, along with its companion app. TL;DR: Links for the app and messenger bot are at the end of this blog post.
Daj się poznać 2017 2735 dni, 19 godzin, 23 minuty temu 24 źrodło rozwiń
While I can’t say casting is a way to go in C#, it’s a rather common operation. It’s good to know there is more than one way of doing that and the best way depends on current circumstances. Explicit Cast I’m assuming you know what casting is but just to be clear, I mean changing object type like casting an int to long or some kind of JSON to string. It’s common, it happens all the time and sometimes we just need to do that. Let’s start with the most basic case of explicit casting.
Daj się poznać 2017 2738 dni, 17 godzin, 51 minut temu 82 źrodło rozwiń
In the previous post, I’ve briefly described part of a process of persisting state of our actor. I’ve told you about storing events and I’ve mentioned things called snapshots. This post is entirely about them.
Daj się poznać 2017 2742 dni, 28 minut temu 25 źrodło rozwiń
As I’ve mentioned in previous posts about Akka.NET, everything that actor knows is stored in memory. While we can skip any database or IO related bottlenecks because things in memory are generally speaking very fast, we must remember that memory is not a place where you can store your data for an extended period of time and keep it. So let’s talk about persisting it.
Daj się poznać 2017 2746 dni, 15 godzin, 1 minutę temu 46 źrodło rozwiń
In one of my posts about Akka.NET I’ve covered actor selections and paths. Sadly I’ve skipped one rather important part regarding allowed characters for actor paths and what to do if our name cannot be used for creating an actor. And recently I’ve received a question about why I’m creating actors using encoded string. This is the cause.
Daj się poznać 2017 2753 dni, 3 godziny, 21 minut temu 30 źrodło rozwiń
Microsoft Flow is a service I’ve been working with for some time and poking it to discover some of its possibilities. Basically, it’s service that allows to create and manage workflows from ready to use blocks representing triggers and actions.
Daj się poznać 2017 2753 dni, 3 godziny, 21 minut temu 94 źrodło rozwiń
How many times have you stored something in key/value collection? Most probably it was Dictionary or some kind of implementation of IEnumerable>. More than a few times I wanted to store more than one value under single key, most common solution for this situation is Dictionary with collection of some kind as value type, but do you remember about type that was designed just for that and is seen much less often in code?
Daj się poznać 2017 2764 dni, 21 godzin, 10 minut temu 169 źrodło rozwiń
We’ve recently released our newest application – Elastic Forms. While it’s easy to work with and powerful solution as a standalone application, you can expand its functionalities by order of magnitude using our API with other services. In this post, we’ll follow the example of using Elastic Forms with Microsoft Flow.
Lately I’ve seen some posts about authentication made easy and simple with various packages and how it’s great we doesn’t haven’t to store logins and passwords in our databases anymore due to global availability of social identity providers. It’s true that making simple authentication with of of those providers is simple today. And in Azure App Services it’s even simpler, it really can be done in 5 minutes.
Daj się poznać 2017 2768 dni, 14 godzin, 34 minuty temu 42 źrodło rozwiń
As you’ve probably seen in previous posts about Akka.NET, actor model is no rocket science and is really easy and fun to start with. However entire actor model may seem like closed and hermetic ecosystem, today I’ll show you how to poke actors in way that’ll make them poke back.
Daj się poznać 2017 2774 dni, 3 godziny, 43 minuty temu 24 źrodło rozwiń