This C# basics tutorial covers the entity object.
When a script is attached to an entity in the scene, we can access all properties of that Entity by using the 'Entity' property. We can find its name, its parent and its scene.
You can find this sample in the tutorial project